47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
<% page_title "Moderation Queue" %>
|
|
|
|
<%= content_for :html_header do %>
|
|
<style>
|
|
<% Danbooru.config.modqueue_warning_tags.each do |tag| %>
|
|
div.post a[data-tag-name="<%= tag %>"] {
|
|
background-color: var(--modqueue-tag-warning-color);
|
|
}
|
|
<% end %>
|
|
</style>
|
|
<% end %>
|
|
|
|
<% content_for(:top_content) do %>
|
|
<div class="flex mb-4">
|
|
<h1 class="flex-grow-1">Moderation Queue</h1>
|
|
<%= render PreviewSizeMenuComponent.new(current_size: @preview_size) %>
|
|
</div>
|
|
|
|
<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 "modqueue/secondary_links" %>
|