blob: 9097fec25c8cb659a7524bf37f4f8e6b60d80160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{ macros.post_vote_buttons(post = answer, visitor_vote = user_answer_votes[answer.id]) }}
<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 %}
{% if request.user.is_authenticated() and
(
request.user == question.author or
request.user.is_administrator_or_moderator()
)
%}
alt="{% trans %}mark this answer as correct (click again to undo){% endtrans %}"
title="{% trans %}mark this answer as correct (click again to undo){% endtrans %}"
{% else %}
alt="{% trans question_author=question.author.username %}{{question_author}} has selected this answer as correct{% endtrans %}"
title="{% trans question_author=question.author.username%}{{question_author}} has selected this answer as correct{% endtrans %}"
{% endif %}
/>
|