<%= t("admin.hidden_comments.index.title") %>

<%= t("admin.shared.moderated_content") %>

<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_comments.index" %> <% if @comments.any? %>

<%= page_entries_info @comments %>

<% @comments.each do |comment| %> <% end %>
<%= t("admin.shared.description") %> <%= t("admin.shared.actions") %>
<%= text_with_links comment.body %>
<% if comment.commentable.hidden? %> (<%= t("admin.hidden_comments.index.hidden_#{comment.commentable_type.downcase}") %>: <%= comment.commentable.title %>) <% else %> <%= link_to comment.commentable.title, commentable_path(comment) %> <% end %>
<%= link_to t("admin.actions.restore"), restore_admin_hidden_comment_path(comment, request.query_parameters), method: :put, data: { confirm: t("admin.actions.confirm") }, class: "button hollow warning" %> <% unless comment.confirmed_hide? %> <%= link_to t("admin.actions.confirm_hide"), confirm_hide_admin_hidden_comment_path(comment, request.query_parameters), method: :put, class: "button" %> <% end %>
<%= paginate @comments %> <% else %>
<%= t("admin.hidden_comments.index.no_hidden_comments") %>
<% end %>