modqueue: move url from /moderator/post/queue to /modqueue.
This commit is contained in:
39
app/views/modqueue/index.html.erb
Normal file
39
app/views/modqueue/index.html.erb
Normal file
@@ -0,0 +1,39 @@
|
||||
<% page_title "Mod Queue" %>
|
||||
|
||||
<div id="c-modqueue">
|
||||
<div id="a-index">
|
||||
<div>
|
||||
<h1>Moderation Queue</h1>
|
||||
|
||||
<%= search_form_for(modqueue_index_path) do |f| %>
|
||||
<%= f.input :tags, input_html: { value: params.dig(:search, :tags), "data-autocomplete": "tag-query" } %>
|
||||
<%= f.submit "Search" %>
|
||||
<% end %>
|
||||
|
||||
<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>
|
||||
|
||||
<%= render "posts/partials/common/inline_blacklist" %>
|
||||
|
||||
<% @posts.each do |post| %>
|
||||
<%= render "post", post: post %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= numbered_paginator(@posts) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "post_disapprovals/detailed_rejection_dialog" %>
|
||||
<%= render "posts/partials/common/secondary_links" %>
|
||||
Reference in New Issue
Block a user