{% import "macros.html" as macros %} {% include "question/question_card.html" %} {% if answers %}
{% include "question/answer_tab_bar.html" %}
{{ macros.paginator(paginator_context, anchor='#sort-top') }}
{% if settings.SHOW_ACCEPTED_ANSWER_FIRST == False %} {% if thread.has_accepted_answer() and answers and thread.accepted_answer != answers[0] %} {% trans %}See the accepted answer{% endtrans %} {% endif %} {% endif %} {% for answer in answers %} {% include "question/answer_card.html" %} {% if loop.index == 1 and 'QUESTION_PAGE_ANSWER_BANNER'|show_block_to(request.user) %} {% endif %} {% endfor %}
{{ macros.paginator(paginator_context, anchor='#sort-top') }}
{% elif settings.QUESTION_PAGE_ALWAYS_SHOW_ANSWER_BANNER %}
{% if 'QUESTION_PAGE_ANSWER_BANNER'|show_block_to(request.user) %} {% endif %} {% endif %} {# buttons below cannot be cached yet #} {% if new_answer_allowed %} {% include "question/new_answer_form.html" %} {% else %}
{{ settings.WORDS_EDIT_YOUR_PREVIOUS_ANSWER|escape }} {{ settings.WORDS_ONLY_ONE_ANSWER_PER_USER_IS_ALLOWED|escape }}
{% endif %} {% if question.closed == False and request.user.pk == question.author_id %}{# this is outside the form on purpose #} {% endif %}