{% extends 'email/base.html' %} {% import 'email/macro.html' as macro %} {% block body %} Пользователь {{ macro.userlink(abuse.user.id, abuse.user.username) }} жалуется на {%- if abuse.target_type == 'story' %} рассказ {%- elif abuse.target_type == 'storycomment' %} комментарий к рассказу {{ macro.storylink(target.id, target.story.title) }} {%- elif abuse.target_type == 'newscomment' %} комментарий к новости {{ target.newsitem.title }} {%- else %} что-то {%- endif -%} :
{% if abuse.target_type == 'story' %} {{ macro.storylink(target.id, target.title) }} {% elif abuse.target_type == 'storycomment' %} {% call macro.comment(target) %} #{{ target.local_id }} {% endcall %}
{% elif abuse.target_type == 'newscomment' %} {% call macro.comment(target) %} #{{ target.local_id }} {% endcall %}
{% else %} {{ abuse.target_type }} / {{ abuse.target_id }}
{% endif %}
Прочитать жалобу {%- endblock %}