<% if show_flag_action?(flaggable) %>
<% if local_assigns[:divider] %>
|
<% end %>
<%= link_to t("shared.flag"), polymorphic_path(flaggable, action: :flag), method: :put, remote: true %>
<% end %>
<% if show_unflag_action?(flaggable) %>
<% if local_assigns[:divider] %>
|
<% end %>
<%= link_to t("shared.unflag"), polymorphic_path(flaggable, action: :unflag), method: :put, remote: true %>
<% end %>