diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index d361049..13fcb0a 100644 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -411,3 +411,11 @@ h6:hover .header-anchor { margin-top: auto; } } + +table.table > tbody > tr.reports-row > td { + vertical-align: middle; +} + +td.report-action-column { + min-width: 150px; +} diff --git a/nyaa/templates/reports.html b/nyaa/templates/reports.html index 455a6e9..943abb7 100644 --- a/nyaa/templates/reports.html +++ b/nyaa/templates/reports.html @@ -2,8 +2,8 @@ {% block title %}Reports :: {{ config.SITE_NAME }}{% endblock %} {% block body %} {% from "_formhelpers.html" import render_field %} -
- +
+
@@ -16,23 +16,38 @@ {% for report in reports.items %} - + - diff --git a/nyaa/templates/view.html b/nyaa/templates/view.html index 7ed25ff..2c917bc 100644 --- a/nyaa/templates/view.html +++ b/nyaa/templates/view.html @@ -189,6 +189,12 @@
#
{{ 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.action }} {{ report_action.torrent(value=report.torrent.id) }} {{ report_action.report(value=report.id) }} - +
+ {{ report_action.action(class_="form-control") }} +
+ +
+