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

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