<a name="{{ answer.id }}"></a>
{% if answer.old_answer_id %}<a name="{{ answer.old_answer_id }}"></a>{% endif %}
<div id="js-post-{{ answer.id }}"
  class="js-post js-answer {% if answer.endorsed %}js-accepted-answer{% endif %} {% if answer.deleted %}js-post-deleted{% endif %}" 
  data-post-id="{{ answer.id }}"
>
  <div class="post-vote-controls">
    {% include "question/answer_vote_buttons.html" %}
  </div>
  <div class="post-content">
    <div class="post-body">
      {% if answer.needs_moderation() %}
        {{ macros.moderated_post_warning(answer) }}
      {% endif %}
      <div class="js-editable"
        id="js-post-body-{{ answer.pk }}"
        data-get-text-url="{{ url('get_post_body') }}?post_id={{ answer.pk }}"
        data-save-text-url="{{ url('set_post_body') }}?post_id={{ answer.pk }}"
        data-save-text-param-name="body_text"
        data-validated-text-param-name="body_html"
        data-min-lines="10"
        data-editor-type="{{ settings.EDITOR_TYPE }}"
        data-validator="askbot.validators.answerValidator"
        data-with-suppress-email-checkbox="true"
      >
        <div class="js-editable-content">{{ answer.summary }}</div>
        <div class="js-editable-controls"></div>
      </div>
    </div>
    <div class="js-editable-hide-post-body-{{ answer.pk }}">
      {{ macros.post_last_updater_and_creator_info(answer, visitor=request.user) }}
      {#% if answer.id in published_answer_ids %}
        <p><strong>{% trans %}This response is published{% endtrans %}</strong></p>
      {% endif %#}
      {% include "question/answer_controls.html" %}
    </div>
    {% if settings.ANSWER_COMMENTS_ENABLED %}
      {% include "question/answer_comments.html" %}
    {% endif %}
  </div>
</div>
