summaryrefslogtreecommitdiffstats
path: root/askbot/templates/question/question_controls.html
blob: 5ebb7a44ddd3a751cb58012f69982a6e1bf61bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<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>
    <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 %}
{% 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 class="question-merge">{% trans %}merge{% endtrans %}</a>
<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}}'{{ ', true' if question.wiki }});
</script>