{% macro title(topicId,replies) -%}
{{ _('Received %(count)s replies',count=replies.total) }}
{%- endmacro %} {% macro body(reply) -%} {% import 'base/link.html' as link %} {% set author = reply.author %}
{{ link.user_avatar(author) }}
{{ link.user(author.username)}} {{ reply.created_at | timesince }}
{{ reply.content | safe_clean }}
{{ like(reply) }}
{%- endmacro %} {% macro like(reply) -%} {% if g.user.is_authenticated and g.user in reply.likers %} {{ reply.likers.count() }} {% else %} {{ reply.likers.count() }} {% endif %} {%- endmacro %} {% macro reply_form(form) -%}
{% if g.user.is_authenticated %}
{{ _('Reply this topic') }}
{{ form.hidden_tag() }} {{ form.content(class='form-control',rows=4)}}
{% else %}
{{_('You need')}} {{ _('Login')}} {{_('before you can reply.')}}
{% endif %}
{%- endmacro %}