3ce0c611 |
1 | {# |
2 | # GNU MediaGoblin -- federated, autonomous media hosting |
3 | # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. |
4 | # |
5 | # This program is free software: you can redistribute it and/or modify |
6 | # it under the terms of the GNU Affero General Public License as published by |
7 | # the Free Software Foundation, either version 3 of the License, or |
8 | # (at your option) any later version. |
9 | # |
10 | # This program is distributed in the hope that it will be useful, |
11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | # GNU Affero General Public License for more details. |
14 | # |
15 | # You should have received a copy of the GNU Affero General Public License |
16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | #} |
18 | {% extends "mediagoblin/base.html" %} |
19 | |
20 | {% block title -%} |
21 | {% trans %}Report panel{% endtrans %} — {{ super() }} |
22 | {%- endblock %} |
23 | |
24 | {% block mediagoblin_content %} |
25 | |
26 | <h1>{% trans %}Report panel{% endtrans %}</h1> |
27 | |
28 | <p> |
3aa3871b |
29 | {% trans %} |
30 | Here you can look up open reports that have been filed by users. |
31 | {% endtrans %} |
3ce0c611 |
32 | </p> |
33 | |
3aa3871b |
34 | <h2>{% trans %}Active Reports Filed{% endtrans %}</h2> |
3ce0c611 |
35 | |
36 | {% if report_list.count() %} |
37 | <table class="admin_panel processing"> |
38 | <tr> |
3aa3871b |
39 | <th></th> |
40 | <th>{% trans %}Offender{% endtrans %}</th> |
41 | <th>{% trans %}When Reported{% endtrans %}</th> |
42 | <th>{% trans %}Reported By{% endtrans %}</th> |
43 | <th>{% trans %}Reason{% endtrans %}</th> |
3ce0c611 |
44 | </tr> |
45 | {% for report in report_list %} |
46 | <tr> |
47 | {% if report.discriminator == "comment_report" %} |
3aa3871b |
48 | <td> |
49 | <img |
50 | src="{{ request.staticdirect('/images/icon_clipboard_alert.png') }}" |
51 | alt="Under a GNU LGPL v.3 or Creative Commons BY-SA 3.0 license. |
52 | Distributed by the GNOME project http://www.gnome.org" /> |
53 | <a href="{{ request.urlgen( |
54 | 'mediagoblin.moderation.reports_detail', |
55 | report_id=report.id) }}"> |
56 | {% trans report_id=report.id %} |
57 | Comment Report #{{ report_id }} |
58 | {% endtrans %} |
59 | </a> |
60 | </td> |
3ce0c611 |
61 | {% elif report.discriminator == "media_report" %} |
3aa3871b |
62 | <td> |
63 | <img |
64 | src="{{ request.staticdirect('/images/icon_clipboard_alert.png') }}" |
65 | alt="Under a GNU LGPL v.3 or Creative Commons BY-SA 3.0 license. |
66 | Distributed by the GNOME project http://www.gnome.org" /> |
67 | <a href="{{ request.urlgen( |
68 | 'mediagoblin.moderation.reports_detail', |
69 | report_id=report.id) }}"> |
70 | {% trans report_id=report.id %} |
71 | Media Report #{{ report_id }} |
72 | {% endtrans %} |
73 | </a> |
74 | </td> |
3ce0c611 |
75 | {% endif %} |
3aa3871b |
76 | <td>{{ report.reported_user.username }}</td> |
77 | <td>{{ report.created.strftime("%F %R") }}</td> |
78 | <td>{{ report.reporter.username }}</td> |
79 | <td>{{ report.report_content[0:20] }}...</td> |
3ce0c611 |
80 | </tr> |
81 | {% endfor %} |
82 | </table> |
83 | {% else %} |
84 | <p><em>{% trans %}No open reports found.{% endtrans %}</em></p> |
85 | {% endif %} |
6bba33d7 |
86 | <h2>{% trans %}Closed Reports{% endtrans %}</h2> |
3ce0c611 |
87 | {% if closed_report_list.count() %} |
88 | <table class="media_panel processing"> |
89 | <tr> |
3aa3871b |
90 | <th></th> |
91 | <th>{% trans %}Resolved{% endtrans %}</th> |
92 | <th>{% trans %}Offender{% endtrans %}</th> |
93 | <th>{% trans %}Action Taken{% endtrans %}</th> |
94 | <th>{% trans %}Reported By{% endtrans %}</th> |
95 | <th>{% trans %}Reason{% endtrans %}</th> |
3ce0c611 |
96 | </tr> |
97 | {% for report in closed_report_list %} |
3aa3871b |
98 | <tr> |
99 | <td> |
100 | <img |
101 | src="{{ request.staticdirect('/images/icon_clipboard.png') }}" |
102 | alt="Under a GNU LGPL v.3 or Creative Commons BY-SA 3.0 license. |
103 | Distributed by the GNOME project http://www.gnome.org" /> |
104 | <a href="{{ request.urlgen('mediagoblin.moderation.reports_detail', |
105 | report_id=report.id) }}"> |
106 | {% trans report_id=report.id %} |
107 | Closed Report #{{ report_id }} |
108 | {% endtrans %} |
109 | </a> |
110 | </td> |
111 | <td>{{ report.resolved.strftime("%F %R") }}</td> |
112 | <td>{{ report.reported_user.username }}</td> |
113 | <td>{{ report.created.strftime("%F %R") }}</td> |
114 | <td>{{ report.reporter.username }}</td> |
8394febb |
115 | <td>{{ report.report_content[:15] }}...</td> |
3aa3871b |
116 | </tr> |
3ce0c611 |
117 | {% endfor %} |
118 | </table> |
119 | {% else %} |
120 | <p><em>{% trans %}No closed reports found.{% endtrans %}</em></p> |
121 | {% endif %} |
122 | {% endblock %} |