From 25535e9cb98fe122c7a73c139d9b7e2e304baa6c Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Tue, 27 Jun 2017 15:56:46 +0200 Subject: [PATCH] Add extra information to reports list Shows whether the reporter is trusted, whether the uploader is trusted, the name of the uploader and for superadmins the IP for the uploader. --- nyaa/templates/reports.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nyaa/templates/reports.html b/nyaa/templates/reports.html index a959089..77ffe2e 100644 --- a/nyaa/templates/reports.html +++ b/nyaa/templates/reports.html @@ -20,13 +20,24 @@ {{ report.id }} {{ report.user.username }} + {% if report.user.is_trusted %} + Trusted + {% endif %} {{ report.torrent.display_name }} + by + {{ report.torrent.user.username }} + {% if g.user.is_superadmin and report.torrent.uploader_ip %} + ({{ report.torrent.uploader_ip_string }}) + {% endif %} + {% if report.torrent.user.is_trusted %} + Trusted + {% endif %} {{ report.reason }} {{ report.created_time }} - +
{{ report_action.csrf_token }} {{ report_action.torrent(value=report.torrent.id) }}