Moderation reports

<%= 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| %> <%= format_text report.reason, inline: true %> <% end %> <% t.column "Creator", width: "10%" do |report| %> <%= compact_time report.created_at %>
by <%= link_to_user report.creator %> <% end %> <% end %> <%= numbered_paginator(@moderation_reports) %>