From f4b3d4e07592369b73f4fd27b7e9bc5ef32627e1 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 30 Oct 2019 23:00:00 -0500 Subject: [PATCH] mod actions: reorganize index page. * Add category column. Allow filtering by category. * Merge user + timestamp into one column. --- app/views/mod_actions/index.html.erb | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/app/views/mod_actions/index.html.erb b/app/views/mod_actions/index.html.erb index 9b7a11daa..50d5489d0 100644 --- a/app/views/mod_actions/index.html.erb +++ b/app/views/mod_actions/index.html.erb @@ -4,24 +4,30 @@ <%= render "search" %> - +
- - + + <% @mod_actions.each do |mod_action| %> - - + + <% end %>
DateUserCategory MessageCreated
<%= compact_time mod_action.created_at %><%= link_to_user mod_action.creator %> + <%= link_to mod_action.category.humanize, mod_actions_path(search: { category: mod_action.category_id }) %> +
<%= format_text(mod_action.filtered_description) %>
+ <%= link_to_user mod_action.creator %> + <%= link_to "ยป", mod_actions_path(search: { creator_name: mod_action.creator.name }) %> +
<%= time_ago_in_words_tagged(mod_action.created_at) %>
+