<a 
    id="post-{{question.id}}-delete"
    class="question-delete"
>{% if question.deleted %}{% trans %}undelete{% endtrans %}{% else %}{% trans %}delete{% endtrans %}{% endif %}</a>
{% 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 %}
{% 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>
    <span 
        id="question-offensive-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 %}flag offensive{% endtrans %} ({{ question.offensive_flag_count }})</a>
    </span>
{% else %}
    <span 
        id="question-offensive-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 %}flag offensive{% endtrans %}</a>
    </span>
{% endif %}
<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>
<a id="post-{{question.id}}-edit" class="question-edit" href="{% url edit_question question.id %}">{% trans %}edit{% endtrans %}</a>
<script type="text/javascript">
    askbot['functions']['renderPostControls']('{{question.id}}');
</script>
