<%= t('account.moderation_heading') %>
<% if comments.none? %>
<%= t('account.moderation_empty') %>
<% else %>
<% end %>
<%== paginate(comments, path: ->(page) { "#{url_for(:account_moderation)}?page=#{page}" }) %>
<%== link_to(t('posts.back_to_list'), url_for(:posts)) %>
<% if comment_post_linkable?(comment) %> <%== link_to(comment_post_label(comment), url_for(:post, slug: comment_post_slug(comment))) %> <% else %> <%= comment_post_label(comment) %> <% end %>
<%= comment.author %>
<%= comment.body %>
<%== button_to(t('comments.approve'), "/posts/#{comment_post_slug(comment)}/comments/#{comment.id}/approve", method: :patch) %> <%== button_to(t('comments.reject'), "/posts/#{comment_post_slug(comment)}/comments/#{comment.id}/reject", method: :patch) %>