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.
This commit is contained in:
evazion
2020-02-29 17:04:39 -06:00
parent 475d6ae7cf
commit 9ddf408ec5
8 changed files with 128 additions and 45 deletions

View File

@@ -1,13 +1,21 @@
<% content_for(:layout) do %>
<div id="c-<%= params[:controller].parameterize.dasherize %>">
<div id="a-<%= params[:action].parameterize.dasherize %>" class="sidebar-container">
<aside id="sidebar">
<%= yield :sidebar %>
</aside>
<div id="a-<%= params[:action].parameterize.dasherize %>">
<% if content_for(:top_content).present? %>
<section id="top-content">
<%= yield :top_content %>
</section>
<% end %>
<section id="content">
<%= yield :content %>
</section>
<div class="sidebar-container">
<aside id="sidebar">
<%= yield :sidebar %>
</aside>
<section id="content">
<%= yield :content %>
</section>
</div>
</div>
</div>
<% end %>