blob: bef26b75d01f553feb17693c1e0465669d551710 (
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
|
<img id="answer-img-upvote-{{ answer.id }}" class="answer-img-upvote"
{% if user_answer_votes[answer.id] == 1 %}
src="{{'/images/vote-arrow-up-on.png'|media}}"
{% else %}
src="{{'/images/vote-arrow-up.png'|media}}"
{% endif %}
alt="{% trans %}i like this answer (click again to cancel){% endtrans %}"
title="{% trans %}i like this answer (click again to cancel){% endtrans %}"/>
<div id="answer-vote-number-{{ answer.id }}" class="vote-number" title="{% trans %}current number of votes{% endtrans %}">
{{ answer.score }}
</div>
<img id="answer-img-downvote-{{ answer.id }}" class="answer-img-downvote"
{% if user_answer_votes[answer.id] == -1 %}
src="{{'/images/vote-arrow-down-on.png'|media}}"
{% else %}
src="{{'/images/vote-arrow-down.png'|media}}"
{% endif %}
alt="{% trans %}i dont like this answer (click again to cancel){% endtrans %}"
title="{% trans %}i dont like this answer (click again to cancel){% endtrans %}" />
{% if request.user == question.author %}
<img id="answer-img-accept-{{ answer.id }}" class="answer-img-accept"
{% if answer.accepted %}
src="{{'/images/vote-accepted-on.png'|media}}"
{% else %}
src="{{'/images/vote-accepted.png'|media}}"
{% endif %}
alt="{% trans %}mark this answer as favorite (click again to undo){% endtrans %}"
title="{% trans %}mark this answer as favorite (click again to undo){% endtrans %}" />
{% else %}
{% if answer.accepted %}
<img id="answer-img-accept-{{ answer.id }}" class="answer-img-accept"
{% if answer.accepted %}
src="{{'/images/vote-accepted-on.png'|media}}"
{% else %}
src="{{'/images/vote-accepted.png'|media}}"
{% endif %}
alt="{% trans question_author=question.author.username %}{{question_author}} has selected this answer as correct{% endtrans %}"
title="{% trans questsion_author=question.author.username%}{{question_author}} has selected this answer as correct{% endtrans %}"
{% endif %}
{% endif %}
|