{% from "upload/attachments.html" import attachment %} {% from "karma/includes/karma_macros.html" import titles %}
{{ answer.creator }} {% if user == answer.creator %} {{ _('You') }} {% elif question.creator == answer.creator %} {{ _('Owner') }} {% endif %}
{{ answer.creator }} {% if waffle.switch('karma') and waffle.flag('karma') %} {{ titles(answer.creator) }} {% endif %} {% if answer.id and question.creator != answer.creator %} {{ _('{num} solutions')|f(num=answer.creator_num_solutions) }} {{ _('{num} answers')|f(num=answer.creator_num_answers) }} {% if waffle.switch('karma') and user.has_perm('users.view_karma_points') %} {% with pts = answer.creator_num_points %} {% if pts != None %} {{ pts }} {% endif %} {% endwith %} {% endif %} {% endif %}
{{ answer.created|timesince }}
{% if is_preview %} {# Don't use cached content_parsed #} {{ answer.content|wiki_to_html }} {% else %} {{ answer.content_parsed|safe }} {% endif %}
{# 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 answer.id and question.solution == answer %} {{ _('Solution chosen') }} {% if user == question.creator or user.has_perm('questions.change_solution') %}
{{ csrf() }}
{% endif %} {% 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.id %}{# answer.id is None when previewing #} {% if not question.is_locked %} {% if user != answer.creator and not answer.has_voted(request) %}

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

{% endif %} {% if not question.solution and (user == question.creator or user.has_perm('questions.change_solution')) %}
{{ csrf() }} {% if user == question.creator %}

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

{% else %}

{{ _('Does this solve the problem?') }}

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