{% set page_title = _("Reports") %} {% set active = "management.unread_reports" %} {% extends theme("management/management_layout.html") %} {% block breadcrumb %} {% endblock %} {% block management_content %} {%- from theme('_macros/pagination.html') import render_pagination -%} {%- from theme('_macros/navigation.html') import navlink with context -%} {%- from theme('_macros/form.html') import action_confirm -%}
{% trans %}Reports{% endtrans %}
{% trans %}Poster{% endtrans %}
{% trans %}Topic{% endtrans %}
{% trans %}Reason{% endtrans %}
{% trans %}Reporter{% endtrans %}
{% trans %}Reported{% endtrans %}
{% for report in reports.items %}
{{ report.reason }}
{{ report.reporter.username }}
{{ report.reported|time_since }}
{% if not report.zapped %} {{ action_confirm( id="read-" ~ report.id, url=url_for('management.report_markread', report_id=report.id), title=_("Mark as Read"), icon="fa fa-flag-o text-primary" ) }} {% endif %} {{ action_confirm( id="delete-" ~ report.id, url=url_for('management.delete_report', report_id=report.id), title=_("Delete"), icon="fa fa-trash text-danger" ) }}
{% else %}
{% trans %}No reports.{% endtrans %}
{% endfor %}
{% include theme('_partials/confirm_dialog.html') %} {% endblock %} {% block scripts %} {% endblock %}