{# # GNU MediaGoblin -- federated, autonomous media hosting # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . #} {% extends "mediagoblin/base.html" %} {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} {% block title -%} {% trans %}Report panel{% endtrans %} — {{ super() }} {%- endblock %} {% block mediagoblin_content %}

{% trans %}Report panel{% endtrans %}

{% trans %} Here you can look up open reports that have been filed by users. {% endtrans %}

{% trans %}Active Reports Filed{% endtrans %}

{% if report_list.count() %} {% if not active_settings.last_page == 1 %} {% if 'active_p='~active_settings.current_page in request.query_string %} {% set query_string = request.query_string %}{% else %} {% set query_string = 'active_p='~active_settings.current_page~"&"+request.query_string %} {% endif %}
{% set first_vis = active_settings.current_page-3 %} {% set last_vis = active_settings.current_page+3 %} {% set curr_page = active_settings.current_page %} {% if 1 == curr_page %}1{% else %} 1{% endif %} {% if first_vis > 1 %}...{% endif %} {% for p in range(first_vis,last_vis+1) %} {% if p > 1 and p < active_settings.last_page and curr_page !=p %} {{ p }} {% elif p > 1 and p < active_settings.last_page %} {{ p }} {% endif %} {% endfor %} {% if last_vis < active_settings.last_page %}...{% endif %} {% if active_settings.last_page != curr_page %} {{ active_settings.last_page }} {% else %}{{ active_settings.last_page }} {% endif %}
{% endif %} {% for report in report_list %} {% if report.discriminator == "comment_report" %} {% elif report.discriminator == "media_report" %} {% endif %} {% endfor %}
{% trans %}Offender{% endtrans %} {% trans %}When Reported{% endtrans %} {% trans %}Reported By{% endtrans %} {% trans %}Reason{% endtrans %}
Under a GNU LGPL v.3 or Creative Commons BY-SA 3.0 license.
                   Distributed by the GNOME project http://www.gnome.org {% trans report_id=report.id %} Comment Report #{{ report_id }} {% endtrans %} Under a GNU LGPL v.3 or Creative Commons BY-SA 3.0 license.
                   Distributed by the GNOME project http://www.gnome.org {% trans report_id=report.id %} Media Report #{{ report_id }} {% endtrans %} {{ report.reported_user.username }} {{ report.created.strftime("%F %R") }} {{ report.reporter.username }} {{ report.report_content[0:20] }}...
{% else %}

{% trans %}No open reports found.{% endtrans %}

{% endif %}

{% trans %}Closed Reports{% endtrans %}

{% if closed_report_list.count() %} {% if not closed_settings.last_page == 1 %} {% if 'closed_p='~closed_settings.current_page in request.query_string %} {% set query_string = request.query_string %}{% else %} {% set query_string = 'closed_p='~closed_settings.current_page~"&"+request.query_string %} {% endif %}
{% set first_vis = closed_settings.current_page-3 %} {% set last_vis = closed_settings.current_page+3 %} {% set curr_page = closed_settings.current_page %} {% if not curr_page==1 %} 1 {% else %} 1 {% endif %} {% if first_vis > 1 %}...{% endif %} {% for p in range(first_vis,last_vis+1) %} {% if p > 1 and p < closed_settings.last_page and curr_page !=p %} {{ p }} {% elif p > 1 and p < closed_settings.last_page %} {{ p }} {% endif %} {% endfor %} {% if last_vis < closed_settings.last_page %}...{% endif %} {% if curr_page != closed_settings.last_page %} {{ closed_settings.last_page }} {% else %}{{ closed_settings.last_page }} {% endif %}
{% endif %} {% for report in closed_report_list %} {% endfor %}
{% trans %}Resolved{% endtrans %} {% trans %}Offender{% endtrans %} {% trans %}Action Taken{% endtrans %} {% trans %}Reported By{% endtrans %} {% trans %}Reason{% endtrans %}
Under a GNU LGPL v.3 or Creative Commons BY-SA 3.0 license.
                 Distributed by the GNOME project http://www.gnome.org {% trans report_id=report.id %} Closed Report #{{ report_id }} {% endtrans %} {{ report.resolved.strftime("%F %R") }} {{ report.reported_user.username }} {{ report.created.strftime("%F %R") }} {{ report.reporter.username }} {{ report.report_content[:15] }}...
{% else %}

{% trans %}No closed reports found.{% endtrans %}

{% endif %} {% endblock %}