{% import "macros.html" as macros %} {# ==== BEGIN: question/question_card.html ==== #} {% include "question/question_card.html" %} {# ==== END: question/question_card.html ==== #} {% if answers %}
{# ==== START: question/answer_tab_bar.html ==== #} {% include "question/answer_tab_bar.html" %} {# ==== END: question/answer_tab_bar.html ==== #}
{{ macros.paginator(paginator_context, anchor='#sort-top') }}
{% for answer in answers %} {# ==== START: question/answer_card.html ==== #} {% include "question/answer_card.html" %} {# ==== END: question/answer_card.html ==== #} {% endfor %} {{ macros.paginator(paginator_context, anchor='#sort-top') }}
{% else %} {# ==== START: question/sharing_prompt_phrase.html ==== #} {% include "question/sharing_prompt_phrase.html" %} {# ==== END: question/sharing_prompt_phrase.html ==== #} {% endif %} {# ==== START: question/new_answer_form.html ==== #} {# buttons below cannot be cached yet #} {% if user_already_gave_answer %} {% trans %}Edit Your Previous Answer{% endtrans %} {% trans %}(only one answer per question is allowed){% endtrans %} {% else %} {% include "question/new_answer_form.html" %} {% endif %} {% if question.closed == False and request.user == question.author %}{# this is outside the form on purpose #} {% endif %}