- Limited to Builders+ -- Moderator+ can also use as they may be too busy ATM - Only on users, comments, and forum posts - Multiple reports can be generated per instance - Primarily posts to a moderator-only topic for viewability - Secondarily has a table for searchability -- Viewable only by moderators
28 lines
1017 B
Plaintext
28 lines
1017 B
Plaintext
<div id="c-moderation-reports">
|
|
<div id="a-index">
|
|
<h1>Moderation reports</h1>
|
|
<%= table_for @moderation_reports, width: "100%" do |t| %>
|
|
<% t.column "Reported", width: "10%" do |report| %>
|
|
<% if report.model_type == "User" %>
|
|
<%= link_to_user report.model %>
|
|
<% elsif report.model_type == "Comment" %>
|
|
<%= link_to "comment ##{report.model_id}", comment_path(report.model_id) %>
|
|
<% elsif report.model_type == "ForumPost" %>
|
|
<%= link_to "forum ##{report.model_id}", forum_post_path(report.model_id) %>
|
|
<% end %>
|
|
<% end %>
|
|
<% t.column "Reason" do |report| %>
|
|
<span class="prose">
|
|
<%= format_text report.reason, inline: true %>
|
|
</span>
|
|
<% end %>
|
|
<% t.column "Creator", width: "10%" do |report| %>
|
|
<%= compact_time report.created_at %>
|
|
<br> by <%= link_to_user report.creator %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= numbered_paginator(@moderation_reports) %>
|
|
</div>
|
|
</div>
|