{# # 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 mediagoblin_head %} {% endblock %} {%- block mediagoblin_content %} {% if not report %} {% trans %}Sorry, no such report found.{% endtrans %} {% else %}
{% trans %}Return to Reports Panel{% endtrans %}

{% trans %}Report{% endtrans %} #{{ report.id }}

{% if report.is_comment_report() and report.comment %} {% trans %}Reported comment{% endtrans %}: {% set comment = report.comment %} {% set reported_user = comment.get_author %}
{% autoescape False %} {{ comment.content_html }} {% endautoescape %}
{% elif report.is_media_entry_report() and report.media_entry %} {% set media_entry = report.media_entry %}
{{ media_entry.title }}

{% trans user_name=report.reported_user.username, user_url=request.urlgen( 'mediagoblin.moderation.users_detail', user=report.reported_user.username) %} ❖ Reported media by {{ user_name }} {% endtrans %}

{% else %}

{% trans user_url=request.urlgen( 'mediagoblin.moderation.users_detail', user=report.reported_user.username), user_name=report.reported_user.username %} CONTENT BY {{ user_name }} HAS BEEN DELETED {% endtrans %}

{% endif %} {% trans %}Reason for report:{% endtrans %}
{{ report.report_content }}
{% if not report.is_archived_report() and not (report.reported_user.has_privilege('admin') and not request.user.has_privilege('admin')) %}
{{ wtforms_util.render_divs(form) }} {{ csrf_token }}
{% elif report.is_archived_report() %}

{% trans %}Status{% endtrans %}:

{% trans %}RESOLVED{% endtrans %} {{ report.resolved.strftime("%I:%M%p %Y-%m-%d") }}
      

{{ report.result }}

{% else %}

{% trans -%} You cannot take action against an administrator {%- endtrans %}

{% endif %} {% endif %} {% endblock %}