blob: 022287a1ec9e2eb7f1aba9d0378180caca93acc7 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
{#<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>
<span
id="answer-offensive-flag-{{ answer.id }}"
class="action-link offensive-flag"
title="{% trans %}report as offensive (i.e containing spam, advertising, malicious text, etc.){% endtrans %}"
>
<a class="question-flag">{% trans %}flag offensive{% endtrans %} ({{ answer.offensive_flag_count }})</a>
</span>
{% else %}
<span
id="answer-offensive-flag-{{ answer.id }}"
class="action-link 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 %}
<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>
{% if thread.is_moderated() %}
<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>
{% endif %}
<span class="action-link">
<a class="permant-link"
href="{{ answer.get_absolute_url(question_post=question) }}"
title="{% trans %}permanent link{% endtrans %}">
{% trans %}link{% endtrans %}
</a>
</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>
|