* Renamed moderator/post/dashboard to moderator/post/queue
* Fixed bug with more overlay links being out of place if news listing is closed
This commit is contained in:
59
app/views/moderator/post/queues/show.html.erb
Normal file
59
app/views/moderator/post/queues/show.html.erb
Normal file
@@ -0,0 +1,59 @@
|
||||
<div id="c-moderator-post-queues">
|
||||
<div id="a-show">
|
||||
<div id="search">
|
||||
<%= form_tag(moderator_post_queue_path, :method => :get) do %>
|
||||
<%= text_field_tag "query", params[:query], :size => 40 %>
|
||||
<%= submit_tag "Search" %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h1>Moderation Queue</h1>
|
||||
|
||||
<div id="moderation-guideline">
|
||||
<h1>Deletion Guidelines</h1>
|
||||
<p>
|
||||
As a general rule, you should only approve of posts that you personally like. Posts that are not approved in three days will be automatically deleted. Posts with score -3 or lower are marked red. Posts with score 3 or higher are marked green.
|
||||
<% if params[:hidden] %>
|
||||
<%= link_to "View all posts", moderator_post_queue_path(:query => params[:query], :hidden => nil) %>.
|
||||
<% else %>
|
||||
<%= link_to "View hidden posts", moderator_post_queue_path(:query => params[:query], :hidden => true) %>.
|
||||
<% end %>
|
||||
</p>
|
||||
|
||||
<p><%= button_tag "Approve all", :id => "approve-all-button" %><%= button_tag "Hide all", :id => "hide-all-button" %></p>
|
||||
</div>
|
||||
|
||||
<% @posts.each do |post| %>
|
||||
<article id="post-<%= post.id %>">
|
||||
<aside>
|
||||
<%= link_to(image_tag(post.medium_file_url), post_path(post)) %>
|
||||
</aside>
|
||||
|
||||
<section>
|
||||
<ul>
|
||||
<li><%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :remote => true, :method => :post %> | <%= link_to "Disapprove", moderator_post_disapproval_path(:post_id => post.id), :remote => true, :method => :post %></li>
|
||||
<li>Rating: <%= post.rating %></li>
|
||||
<li>Score: <%= post.score %></li>
|
||||
<li>Uploader: <%= link_to(post.uploader.name, user_path(post.uploader_id)) %> <%= time_ago_in_words(post.created_at) %> ago</li>
|
||||
<% if post.is_flagged? %>
|
||||
<li>Flagged: <%= post_flag_reason(post) %></li>
|
||||
<% end %>
|
||||
<% if (post.is_flagged? || post.is_deleted?) && post.appeals.any? %>
|
||||
<li>Appeals: <%= post_appeal_reason(post) %></li>
|
||||
<% end %>
|
||||
<li>Disapprovals: <%= post.disapprovals.count %></li>
|
||||
<li>Tags: <%= post.tag_string %></li>
|
||||
</ul>
|
||||
</section>
|
||||
</article>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "posts/partials/common/secondary_links" %>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Mod Queue - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user