modreports: remove dead code.

This commit is contained in:
evazion
2021-01-16 01:15:39 -06:00
parent 22de059e88
commit e7cdae33b2
6 changed files with 5 additions and 31 deletions

View File

@@ -3,9 +3,7 @@
<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 == "Dmail" %>
<% if report.model_type == "Dmail" %>
<%= link_to report.model.dtext_shortlink, dmail_path(report.model, key: report.model.key) %>
<% else %>
<%= link_to report.model.dtext_shortlink, report.model %>