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.
This commit is contained in:
Nicolas F 2017-06-27 15:56:46 +02:00
parent 9dfce327b6
commit 25535e9cb9
1 changed files with 12 additions and 1 deletions

View File

@ -20,13 +20,24 @@
<td>{{ report.id }}</td>
<td>
<a href="{{ url_for('view_user', user_name=report.user.username) }}">{{ report.user.username }}</a>
{% if report.user.is_trusted %}
<span class="label label-success pull-right">Trusted</span>
{% endif %}
</td>
<td>
<a href="{{ url_for('view_torrent', torrent_id=report.torrent.id) }}">{{ report.torrent.display_name }}</a>
by <a href="{{ url_for('view_user', user_name=report.torrent.user.username) }}">
{{ report.torrent.user.username }}</a>
{% if g.user.is_superadmin and report.torrent.uploader_ip %}
({{ report.torrent.uploader_ip_string }})
{% endif %}
{% if report.torrent.user.is_trusted %}
<span class="label label-success pull-right">Trusted</span>
{% endif %}
</td>
<td>{{ report.reason }}</td>
<td>{{ report.created_time }}</td>
<td style="width: 180px">
<td style="min-width: 150px">
<form method="post">
{{ report_action.csrf_token }}
{{ report_action.torrent(value=report.torrent.id) }}