Files
danbooru/app/views/mod_actions/index.html.erb
evazion 23f9a1af7e mod actions: update /mod_actions index.
* Add newest and oldest order options.
* Rearrange columns to match /user_actions page.
2022-09-19 05:09:06 -05:00

28 lines
962 B
Plaintext

<div id="c-mod-actions">
<div id="a-index">
<h1>Mod Actions</h1>
<%= render "search" %>
<%= table_for @mod_actions, class: "striped autofit" do |t| %>
<% t.column "Message", td: {class: "col-expand"} do |mod_action| %>
<div class="prose">
<%= link_to_user mod_action.creator %> <%= format_text(mod_action.description.chomp(".").strip, inline: true) %>.
</div>
<% end %>
<% t.column "Category" do |mod_action| %>
<%= link_to mod_action.category.humanize, mod_actions_path(search: { category: mod_action.category_id }) %>
<% end %>
<% t.column "Created" do |mod_action| %>
<%= link_to_user mod_action.creator %>
<%= link_to "»", mod_actions_path(search: { creator_name: mod_action.creator.name }) %>
<div><%= time_ago_in_words_tagged(mod_action.created_at) %></div>
<% end %>
<% end %>
<%= numbered_paginator(@mod_actions) %>
</div>
</div>