summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2011-11-17 11:46:22 -0300
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2011-11-17 11:46:22 -0300
commitb26c49e8997bafc95b3a12e2dc0ebe4717b5951a (patch)
treef51754d89bd6d4ddb7f36cc2daf3a8d636318540
parent46faed1261a2491bd2e960d8a9faa665231a534b (diff)
downloadaskbot-b26c49e8997bafc95b3a12e2dc0ebe4717b5951a.tar.gz
askbot-b26c49e8997bafc95b3a12e2dc0ebe4717b5951a.tar.bz2
askbot-b26c49e8997bafc95b3a12e2dc0ebe4717b5951a.zip
fixed a bad condition that showed accepted arrow to everyone
-rw-r--r--askbot/skins/common/templates/question/answer_vote_buttons.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/askbot/skins/common/templates/question/answer_vote_buttons.html b/askbot/skins/common/templates/question/answer_vote_buttons.html
index e3072ae4..0ff57e4b 100644
--- a/askbot/skins/common/templates/question/answer_vote_buttons.html
+++ b/askbot/skins/common/templates/question/answer_vote_buttons.html
@@ -3,15 +3,15 @@
visitor_vote = user_answer_votes[answer.id]
)
}}
-{% if request.user == question.author or request.user.is_authenticated() and (request.user.is_moderator() or request.user.is_administrator()) %}
+{% if request.user == question.author or (request.user.is_authenticated() and (request.user.is_moderator() or request.user.is_administrator())) %}
<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 %}" />
+ 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 %}
{% if answer.accepted %}
<img id="answer-img-accept-{{ answer.id }}" class="answer-img-accept"