2017-05-19 20:52:04 +03:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block title %}Reports :: {{ config.SITE_NAME }}{% endblock %}
|
|
|
|
{% block body %}
|
|
|
|
{% from "_formhelpers.html" import render_field %}
|
2018-02-01 20:35:04 +01:00
|
|
|
<div class="table">
|
2017-06-27 15:25:55 +02:00
|
|
|
<table class="table table-bordered table-hover table-striped table-condensed">
|
2017-05-20 13:33:58 +03:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>Reported by</th>
|
|
|
|
<th>Torrent</th>
|
|
|
|
<th>Reason</th>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Action</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for report in reports.items %}
|
2017-06-27 15:25:55 +02:00
|
|
|
<tr class="reports-row">
|
2017-05-20 13:33:58 +03:00
|
|
|
<td>{{ report.id }}</td>
|
|
|
|
<td>
|
2017-07-08 00:50:55 +03:00
|
|
|
<a href="{{ url_for('users.view_user', user_name=report.user.username) }}">{{ report.user.username }}</a>
|
2017-06-27 15:56:46 +02:00
|
|
|
{% if report.user.is_trusted %}
|
|
|
|
<span class="label label-success pull-right">Trusted</span>
|
|
|
|
{% endif %}
|
2017-05-20 13:33:58 +03:00
|
|
|
</td>
|
|
|
|
<td>
|
2017-07-11 01:00:03 +03:00
|
|
|
<a href="{{ url_for('torrents.view', torrent_id=report.torrent.id) }}">{{ report.torrent.display_name }}</a>
|
2017-07-08 00:50:55 +03:00
|
|
|
by <a href="{{ url_for('users.view_user', user_name=report.torrent.user.username) }}">
|
2017-06-27 15:56:46 +02:00
|
|
|
{{ 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 %}
|
2017-05-20 13:33:58 +03:00
|
|
|
</td>
|
|
|
|
<td>{{ report.reason }}</td>
|
|
|
|
<td>{{ report.created_time }}</td>
|
2017-06-27 16:07:10 +02:00
|
|
|
<td class="report-action-column">
|
2017-05-20 13:33:58 +03:00
|
|
|
<form method="post">
|
2017-05-20 14:23:29 +03:00
|
|
|
{{ report_action.csrf_token }}
|
|
|
|
{{ report_action.torrent(value=report.torrent.id) }}
|
|
|
|
{{ report_action.report(value=report.id) }}
|
2017-06-27 15:25:55 +02:00
|
|
|
<div class="input-group input-group-sm">
|
|
|
|
{{ report_action.action(class_="form-control") }}
|
|
|
|
<div class="input-group-btn">
|
|
|
|
<button type="submit" class="btn btn-primary">Review</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-05-20 13:33:58 +03:00
|
|
|
</form>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class=pagination>
|
|
|
|
{% from "bootstrap/pagination.html" import render_pagination %}
|
|
|
|
{{ render_pagination(reports) }}
|
|
|
|
</div>
|
2017-05-19 20:52:04 +03:00
|
|
|
{% endblock %}
|