{% 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') }}
{% 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 == question.author %}{# this is outside the form on purpose #} {% endif %}