{#<span class="action-link swap-qa">
  <a id="swap-question-with-answer-{{answer.id}}">{{ settings.WORDS_SWAP_WITH_QUESTION|escape }}</a>
</span>uncomment if needed#}
<span id='post-{{answer.id}}-edit' class="action-link">
    <a class="question-edit" href="{% url edit_answer answer.id %}">{% trans %}edit{% endtrans %}</a>
</span>
{% if answer.offensive_flag_count > 0 %}
<span 
    id="answer-offensive-remove-flag-{{ answer.id }}"
    class="action-link offensive-flag"
    title="{% trans %}remove offensive flag{% endtrans %}"
>
    <a class="question-flag">{% trans %}remove flag{% endtrans %}</a>
</span>
{% else %}
{% endif %}
<span id='post-{{answer.id}}-delete' class="action-link delete-post">
    <a class="question-delete"
    >{% if answer.deleted %}{% trans %}undelete{% endtrans %}{% else %}{% trans %}delete{% endtrans %}{% endif %}</a>
</span>
<span 
    id="post-{{answer.id}}-publish"
    class="action-link"
>
    {% if answer.id in published_answer_ids %}
        <a 
            class="answer-unpublish"
            data-answer-id="{{ answer.id }}"
        >{% trans %}unpublish{% endtrans %}</a>
    {% else %}
        <a 
            class="answer-publish"
            data-answer-id="{{ answer.id}}"
        >{% trans %}publish{% endtrans %}</a>
    {% endif %}
</span>
<span class="action-link dropdown-toggle">{% trans %}more{% endtrans %}
<ul class="dropdown-menu">
    <li id='post-{{answer.id}}-convert'>
        <form 
            class="answer-convert"
            action="{% url repost_answer_as_comment_under_question %}"
            method="post"
        >
            {% csrf_token %}
            <input type="hidden" name="answer_id" id="id_answer_id" value="{{answer.id}}"/>
            <input 
                type="submit"
                class="link"
                value="{{ settings.WORDS_REPOST_AS_A_QUESTION_COMMENT|escape }}"
            />
        </form>
    </li>
    <li id='post-{{ answer.id }}-repost-as-comment-under-previous-answer'>
        <form class="answer-convert repost-as-comment-under-previous-answer"
            action="{% url repost_answer_as_comment_under_previous_answer %}"
            method="post"
        >
            {% csrf_token %}
            <input type="hidden" name="answer_id" value="{{ answer.id }}"/>
            <input 
                type="submit"
                class="link"
                value="{{ settings.WORDS_REPOST_AS_A_COMMENT_UNDER_THE_OLDER_ANSWER|escape }}"
            />
        </form>
    </li>
</ul>
</span>
<script type="text/javascript">
    askbot['functions']['hideConvertAnswerLinks']('{{ answer.id }}');
    askbot['functions']['hidePublishAnswerLink']('{{ answer.id }}');
    askbot['functions']['renderPostControls']('{{ answer.id }}');
</script>
