{%- import 'includes/notification_comment.html' as nc with context -%} {% if not notifications -%}

Здесь пока ничего нет

{%- endif -%} {% for item in notifications -%} {%- if item.show_viewed_line -%}
{{ _('Viewed notifications') }}
{%- endif -%}
{% if item.broken %} Удалено {% if item.created_at %}
{% endif %} {%- elif item.type == 'story_publish' or item.type == 'story_draft' %} {% if item.user.is_staff %} {{- pgettext('notify_story_publish_draft', 'Moderator') -}} {% else %} {{- pgettext('notify_story_publish_draft', 'User') -}} {% endif %} {{ item.user.username -}} {% if item.type == 'story_publish' -%} одобрил рассказ {%- else -%} отправил в черновики рассказ {%- endif %} «{{ item.story.title }}»
{%- elif item.type == 'story_chapter' %} В рассказе «{{ item.story.title }}» опубликована новая глава «{{ item.chapter.autotitle }}»
{%- elif item.type == 'story_reply' %}
{% call nc.notification_comment_html(item.comment) %} в ответ на ваш комментарий к рассказу {{ item.story.title }} {% endcall %}
{%- elif item.type == 'story_comment' %}
{% call nc.notification_comment_html(item.comment) %} к рассказу {{ item.story.title }} {% endcall %}
{%- elif item.type == 'story_lreply' %}
Комментарий от {% if item.extra.is_staff -%} модератора {%- elif item.extra.is_author -%} автора {%- elif item.extra.is_editor -%} редактора {%- else -%} бета-читателя {%- endif -%}:
{% call nc.notification_comment_html(item.comment) %} в ответ на ваш комментарий к редакторской рассказа {{ item.story.title }} {% endcall %}
{%- elif item.type == 'story_lcomment' %}
Комментарий от {% if item.extra.is_staff -%} модератора {%- elif item.extra.is_author -%} автора {%- elif item.extra.is_editor -%} редактора {%- else -%} бета-читателя {%- endif -%}:
{% call nc.notification_comment_html(item.comment) %} в редакторской рассказа {{ item.story.title }} {% endcall %}
{%- elif item.type == 'news_reply' %}
{% call nc.notification_comment_html(item.comment) %} в ответ на ваш комментарий к новости {{ item.newsitem.title }} {% endcall %}
{%- elif item.type == 'news_comment' %}
{% call nc.notification_comment_html(item.comment) %} к новости {{ item.newsitem.title }} {% endcall %}
{%- else %} {{ item }}
{% endif %}
{%- endfor %}