{% macro notification_comment_html(comment) %} {%- if comment.deleted and not comment.brief_text_as_html -%}
Комментарий был отправлен на Луну #
{%- else -%} {%- if comment_spoiler_threshold is not defined -%} {%- set comment_spoiler_threshold = get_comment_threshold() -%} {%- endif -%} {% if comment.can_vote and comment.vote_total <= comment_spoiler_threshold %} {% else %}
{{ comment.brief_text_as_html|safe }}
{% endif %} {% if comment.deleted -%}
Комментарий был отправлен на Луну
{%- endif %}
{%- if comment.author.id -%} {{ comment.author.username }} {%- else %} {{ comment.author.username or 'Гость' }} {%- endif %} {{ caller() if caller else '' }} #
{%- endif -%} {% endmacro %}