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 %>

View File

@@ -21,9 +21,6 @@
<% if !@user.is_platinum? %>
<%= subnav_link_to "Gift upgrade", new_user_upgrade_path(:user_id => @user.id) %>
<% end %>
<% if policy(@user).reportable? %>
<%= subnav_link_to "Report user", new_moderation_report_path(moderation_report: { model_type: "User", model_id: @user.id }), remote: true %>
<% end %>
<% end %>
<% if policy(CurrentUser.user).promote? %>

View File

@@ -5,14 +5,6 @@
<div id="a-show">
<h1><%= link_to_user @user %></h1>
<% if @user.moderation_reports.visible(CurrentUser.user).recent.present? %>
<div class="moderation-users-notice">
<span class="info" id="moderation-users-notice-for-<%= @user.id %>">
This user has been reported for moderation! (<%= pluralize(@user.moderation_reports.visible(CurrentUser.user).recent.length, "report") %>)
</span>
</div>
<% end %>
<%= render "statistics", presenter: @user.presenter, user: @user %>
<%= render "posts/partials/common/inline_blacklist" %>