{% 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) %}
{% elif settings.QUESTION_PAGE_ALWAYS_SHOW_ANSWER_BANNER %}
{% if 'QUESTION_PAGE_ANSWER_BANNER'|show_block_to(request.user) %}
{{ settings.QUESTION_PAGE_ANSWER_BANNER|safe }}
{% endif %}
{% endif %}
{# buttons and form below cannot be cached #}
{% if not (thread.closed or settings.READ_ONLY_MODE_ENABLED) %}
{% if new_answer_allowed %}{# show answer input or not #}
{% if request.user.is_authenticated or settings.ALLOW_POSTING_BEFORE_LOGGING_IN %}
{% include "question/new_answer_form.html" %}
{% else %}
{{ settings.WORDS_LOGIN_SIGNUP_TO_ANSWER|escape }}
{% endif %}
{% else %}
{# TODO: make this button open in-place answer editor, if answer is on the same page #}
{{ settings.WORDS_EDIT_YOUR_PREVIOUS_ANSWER|escape }}{{ settings.WORDS_ONLY_ONE_ANSWER_PER_USER_IS_ALLOWED|escape }}
{# hidden because we still need js from the tinymce widget #}
{% include "question/new_answer_form.html" %}