{% extends base %} {% from 'macro.html' import breadcrumbs, paginator with context %} {% block content %}
{{- breadcrumbs([[url_for('admin_index.index'), _('Administration')]]) }}

{{ page_title }}

{%- for abuse in abuse_reports %}{% endfor -%}
  Объект {{ _('Username') }} Статус Дата
{%- if abuse.target_type == 'story' and abuse.target_id in stories -%} {{ stories[abuse.target_id].title|truncate(32) }} {%- elif abuse.target_type == 'storycomment' and abuse.target_id in storycomments -%} Комментарий: {{ storycomments[abuse.target_id].story.title|truncate(32) }} {%- elif abuse.target_type == 'newscomment' and abuse.target_id in newscomments -%} Комментарий: {{ newscomments[abuse.target_id].newsitem.title|truncate(32) }} {%- else -%} {{ abuse.target_type }}/{{ abuse.target_id }} {%- endif -%} {% if abuse.user %} {{- abuse.user.username -}} {% else %}N/A{% endif %} {% if abuse.ignored %}Игнорируется {% elif not abuse.resolved_at %}Не решено {% elif abuse.resolved_at and abuse.accepted %}Подтверждено {% elif abuse.resolved_at and not abuse.accepted %}Отклонено {% endif %}
Статус выбранных жалоб:
{% for k, v in args.items() if k not in ['target_type', 'target_id', 'username', 'status', 'page'] %} {%- endfor %}



{{ paginator(page_obj) }} {{- breadcrumbs([[url_for('admin_index.index'), _('Administration')]]) }}
{% endblock %}