Files
danbooru/app/views/modqueue/index.html.erb
evazion 9ddf408ec5 modqueue: add sidebar.
Add a sidebar to the modqueue page that shows the following information:

* Number of pending and flagged posts.
* Number of posts disapproved for poor quality or breaking rules.
* Top uploaders in the queue.
* Top artist, copyright, and character tags in the queue.
2020-03-02 13:47:54 -06:00

34 lines
913 B
Plaintext

<% page_title "Moderation Queue" %>
<% content_for(:top_content) do %>
<h1>Moderation Queue</h1>
<div id="moderation-guideline" class="fixed-width-container">
<h2>Deletion Guidelines</h2>
<%= render "desc" %>
<p>
<% if params.dig(:search, :hidden) %>
<%= link_to "View pending posts", modqueue_index_path(search: { tags: params.dig(:search, :tags), hidden: nil }) %>.
<% else %>
<%= link_to "View hidden posts", modqueue_index_path(search: { tags: params.dig(:search, :tags), hidden: true, }) %>.
<% end %>
</p>
</div>
<% end %>
<% content_for(:content) do %>
<h2>Posts</h2>
<% @posts.each do |post| %>
<%= render "post", post: post %>
<% end %>
<%= numbered_paginator(@posts) %>
<% end %>
<%= render "modqueue/sidebar" %>
<%= render "post_disapprovals/detailed_rejection_dialog" %>
<%= render "posts/partials/common/secondary_links" %>