{% from "upload/attachments.html" import attachment %}
{{ answer.creator }} {% if user == answer.creator %} {{ _('You') }} {% elif question.creator == answer.creator %} {{ _('Owner') }} {% endif %}
{{ answer.creator }}
{{ answer.created|timesince }}
{{ answer.content_parsed|safe }}
{# for the speech bubble arrow #}
{% for image in answer.images.all() %} {{ attachment(image, user) }} {% endfor %}
{% if answer.updated_by %}

{{ _('Modified {datetime} by {name}')|fe(name=answer.updated_by.username, datetime=datetimeformat(answer.updated, format='longdatetime')) }}

{% endif %}
{% if question.solution == answer %} {{ _('Solution chosen by {author}')|f(author=question.creator) }} {% endif %} {% if answer.num_votes != 0 %} {{ ngettext('{count} out of 1 person found this reply helpful', '{count} out of {total} people found this reply helpful', answer.num_votes)|f(count=answer.num_helpful_votes, total=answer.num_votes) }} {% endif %} {% if answer.id and not question.is_locked %} {{ _('Reply') }} {% endif %}
{% if answer.creator != question.creator %} {% if not question.is_locked %} {% if not question.solution and user == question.creator %}

{{ _('Did this solve your problem?') }}

{{ csrf() }}
{% elif not answer.has_voted(request) and user != question.creator and user != answer.creator %}

{{ _('Was this reply helpful?') }}

{{ csrf() }}
{% endif %} {% endif %} {% endif %} {% if user.is_authenticated() and user != answer.creator and not question.is_locked %}
{% include 'questions/includes/flag_form.html' %}
{% endif %}