<a id="post-{{question.id}}-edit" class="question-edit" href="{% url edit_question question.id %}">{% trans %}edit{% endtrans %}</a>
<script type="text/javascript">
    var retagUrl = "{% url retag_question question.id %}";
</script>
<a id="retag" class="question-retag" href="{% url retag_question question.id %}">{% trans %}retag{% endtrans %}</a>
{% if question.offensive_flag_count > 0 %}
    <span
        id="question-offensive-remove-flag-{{ question.id }}"
        class="offensive-flag"
        title="{% trans %}report as offensive (i.e containing spam, advertising, malicious text, etc.){% endtrans %}"
    >
        <a class="question-flag">{% trans %}remove flag{% endtrans %}</a>
    </span>
{% else %}
{% endif %}
{% if thread.closed %}
    <a class="question-close" href="{% url reopen question.id %}">{% trans %}reopen{% endtrans %}</a>
{% else %}
    <a class="question-close" href="{% url close question.id %}">{% trans %}close{% endtrans %}</a>
{% endif %}
<a
    id="post-{{question.id}}-delete"
    class="question-delete"
>{% if question.deleted %}{% trans %}undelete{% endtrans %}{% else %}{% trans %}delete{% endtrans %}{% endif %}</a>
<script type="text/javascript">
    askbot['functions']['renderPostControls']('{{question.id}}');
</script>
