<% if can? :hide, debate %>
  <%= link_to t("admin.actions.hide").capitalize, hide_moderation_debate_path(debate),
              method: :put, remote: true, data: { confirm: t('admin.actions.confirm') } %>
<% end %>

<% if can? :hide, debate.author %>
  &nbsp;|&nbsp;
  <%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(debate.author_id),
              method: :put, data: { confirm: t('admin.actions.confirm') } %>
<% end %>

<% if can? :mark_featured, debate %>
  &nbsp;|&nbsp;
  <% if debate.featured? %>
    <%= link_to t("admin.actions.unmark_featured").capitalize, unmark_featured_debate_path(debate),
              method: :put, data: { confirm: t('admin.actions.confirm') } %>
  <% else %>
    <%= link_to t("admin.actions.mark_featured").capitalize, mark_featured_debate_path(debate),
              method: :put, data: { confirm: t('admin.actions.confirm') } %>
  <% end %>
<% end %>
