posts: rework post events page.
* 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).
This commit is contained in:
17
app/views/post_events/_secondary_links.html.erb
Normal file
17
app/views/post_events/_secondary_links.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<% case controller_name %>
|
||||
<% when "post_approvals" %>
|
||||
<%= quick_search_form_for(:user_name, post_approvals_path, "user", autocomplete: "user") %>
|
||||
<% when "post_disapprovals" %>
|
||||
<%= quick_search_form_for(:user_name, post_disapprovals_path, "user", autocomplete: "user") %>
|
||||
<% else %>
|
||||
<%= quick_search_form_for(:creator_name, url_for, "user", autocomplete: "user") %>
|
||||
<% end %>
|
||||
|
||||
<%= subnav_link_to "Events", post_events_path %>
|
||||
<%= subnav_link_to "Appeals", post_appeals_path %>
|
||||
<%= subnav_link_to "Approvals", post_approvals_path %>
|
||||
<%= subnav_link_to "Disapprovals", post_disapprovals_path %>
|
||||
<%= subnav_link_to "Flags", post_flags_path %>
|
||||
<%= subnav_link_to "Replacements", post_replacements_path %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user