* Add a global /post_events page that shows the history of all approvals, disapprovals, flags, appeals, and replacements on a single page. * Redesign the /posts/:id/events page to show all approval, disapproval, flag, appeal, and replacement events for a single post (before it only showed approvals, flags, and appeals). * Remove the replacement history link from the post show page. Replacements are now included in the post events page (closes #4948: Highlighed replacements). * Add /post_approvals/:id and /post_replacements/:id routes (these are used by the "Details" link on the post events page).
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
<div id="c-post-approvals">
|
|
<div id="a-index">
|
|
<h1>Approvals</h1>
|
|
<%= render "posts/partials/common/inline_blacklist" %>
|
|
|
|
<%= search_form_for(post_approvals_path) do |f| %>
|
|
<%= f.input :user_name, label: "Approver", input_html: { value: params[:search][:user_name], data: { autocomplete: "user" } } %>
|
|
<%= f.input :post_tags_match, label: "Tags", input_html: { value: params[:search][:post_tags_match], data: { autocomplete: "tag-query" } } %>
|
|
<%= f.submit "Search" %>
|
|
<% end %>
|
|
|
|
<%= table_for @post_approvals, width: "100%" do |t| %>
|
|
<% t.column "Post", width: "1%" do |post_approval| %>
|
|
<%= post_preview(post_approval.post, show_deleted: true) %>
|
|
<% end %>
|
|
<% t.column "Approver", width: "15%" do |post_approval| %>
|
|
<%= link_to_user post_approval.user %>
|
|
<%= link_to "»", post_approvals_path(search: params[:search].merge(user_name: post_approval.user.name)) %>
|
|
<br><%= time_ago_in_words_tagged post_approval.created_at %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= numbered_paginator(@post_approvals) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "post_events/secondary_links" %>
|