mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 15:19:59 +00:00
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:
parent
9dfce327b6
commit
25535e9cb9
|
@ -20,13 +20,24 @@
|
||||||
<td>{{ report.id }}</td>
|
<td>{{ report.id }}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ url_for('view_user', user_name=report.user.username) }}">{{ report.user.username }}</a>
|
<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>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{ url_for('view_torrent', torrent_id=report.torrent.id) }}">{{ report.torrent.display_name }}</a>
|
<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>
|
||||||
<td>{{ report.reason }}</td>
|
<td>{{ report.reason }}</td>
|
||||||
<td>{{ report.created_time }}</td>
|
<td>{{ report.created_time }}</td>
|
||||||
<td style="width: 180px">
|
<td style="min-width: 150px">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{{ report_action.csrf_token }}
|
{{ report_action.csrf_token }}
|
||||||
{{ report_action.torrent(value=report.torrent.id) }}
|
{{ report_action.torrent(value=report.torrent.id) }}
|
||||||
|
|
Loading…
Reference in a new issue