|
| 1 | +{# |
| 2 | + forum/reportlist.html |
| 3 | + ~~~~~~~~~~~~~~~~~~~~~ |
| 4 | + |
| 5 | + The moderators can see all reported topics on this page. |
| 6 | + |
| 7 | + :copyright: (c) 2013-2016 by the Inyoka Team, see AUTHORS for more details. |
| 8 | + :license: BSD, see LICENSE for more details. |
| 9 | +#} |
| 10 | + |
| 11 | +{% extends 'forum/base.html' %} |
| 12 | + |
| 13 | +{% block title %} |
| 14 | + {% trans %}Reported topics{% endtrans %} – {{ super() }} |
| 15 | +{% endblock %} |
| 16 | + |
| 17 | +{% block breadcrumb %} |
| 18 | + {{ super() }} |
| 19 | + |
| 20 | + {{ macros.breadcrumb_item(_('Reported topics'), href('forum', 'reported_topics')) }} |
| 21 | +{% endblock %} |
| 22 | + |
| 23 | +{% block sidebar %} |
| 24 | + {{ super() }} |
| 25 | + |
| 26 | + {% call macros.sidebar() %} |
| 27 | + {% if subscribed %} |
| 28 | + {{ macros.sidebar_item(_('Unsubscribe from topic reports'), href('forum', 'reported_topics', 'unsubscribe'), 'fa_icon-bell-slash') }} |
| 29 | + {% else %} |
| 30 | + {{ macros.sidebar_item(_('Subscribe to topic reports'), href('forum', 'reported_topics', 'subscribe'), 'fa_icon-bell') }} |
| 31 | + {% endif %} |
| 32 | + {% endcall %} |
| 33 | +{% endblock %} |
| 34 | + |
| 35 | +{% block content %} |
| 36 | + {% call macros.outer_form(csrf_token(), form, submit_label=_('Close selected tickets'), manually_rendered=True) %} |
| 37 | + <div class="forum-reportlist"> |
| 38 | + <table> |
| 39 | + <thead> |
| 40 | + <tr> |
| 41 | + <th>{% trans %}#{% endtrans %}</th> |
| 42 | + <th>{% trans %}Topic{% endtrans %}</th> |
| 43 | + <th>{% trans %}Reported by{% endtrans %}</th> |
| 44 | + <th>{% trans %}Assigned to{% endtrans %}</th> |
| 45 | + </tr> |
| 46 | + </thead> |
| 47 | + |
| 48 | + <tbody> |
| 49 | + {% for topic in topics %} |
| 50 | + <tr class="forum-reportlist-head"> |
| 51 | + <td> |
| 52 | + <input type="checkbox" name="selected" value="{{ topic.id }}" /> |
| 53 | + </td> |
| 54 | + <td> |
| 55 | + <a href="{{ topic|url }}">{{ topic.title|e }}</a> ({{ topic.forum.name|e}}) |
| 56 | + </td> |
| 57 | + <td> |
| 58 | + <a href="{{ topic.reporter|url }}">{{ topic.reporter.username }}</a> |
| 59 | + </td> |
| 60 | + <td> |
| 61 | + {% if topic.report_claimed_by %} |
| 62 | + {% if topic.report_claimed_by.username == USER.username %} |
| 63 | + <a href="{{ href('forum', 'reported_topics', unassign=USER, topic=topic.slug) }}"> |
| 64 | + {% trans %}Unassign me{% endtrans %} |
| 65 | + </a> |
| 66 | + {% else %} |
| 67 | + <a href="{{ topic.report_claimed_by|url }}"> |
| 68 | + {{ topic.report_claimed_by.username }} |
| 69 | + </a> |
| 70 | + {% endif %} |
| 71 | + {% else %} |
| 72 | + <a href="{{ href('forum', 'reported_topics', assign=USER, topic=topic.slug) }}"> |
| 73 | + {% trans %}Assign to me{% endtrans %} |
| 74 | + </a> |
| 75 | + {% endif %} |
| 76 | + </td> |
| 77 | + </tr> |
| 78 | + |
| 79 | + <tr> |
| 80 | + <td colspan="4" class="forum-reportlist-content"> |
| 81 | + {{ topic.reported_rendered }} |
| 82 | + </td> |
| 83 | + </tr> |
| 84 | + {% else %} |
| 85 | + <tr><td colspan="4"> |
| 86 | + {% trans %}Currently there are no reported topics.{% endtrans %} |
| 87 | + </td></tr> |
| 88 | + {% endfor %} |
| 89 | + </tbody> |
| 90 | + </table> |
| 91 | + </div> |
| 92 | + {% endcall %} |
| 93 | +{% endblock %} |
0 commit comments