- {% if question_vote %}\r
- <img id="question-img-upvote-{{ question.id }}" class="question-img-upvote" \r
- {% if question_vote.is_upvote %}\r
- src="{% media "/media/images/vote-arrow-up-on.png" %}" \r
- {% else %}\r
- src="{% media "/media/images/vote-arrow-up.png" %}" \r
- {% endif %}\r
- alt="{% trans "i like this post (click again to cancel)" %}"\r
- title="{% trans "i like this post (click again to cancel)" %}" />\r
- <div id="question-vote-number-{{ question.id }}" class="vote-number" \r
- title="{% trans "current number of votes" %}">\r
- {{ question.score }}\r
- </div>\r
- <img id="question-img-downvote-{{ question.id }}" class="question-img-downvote" \r
- {% if question_vote.is_downvote %}\r
- src="{% media "/media/images/vote-arrow-down-on.png" %}" \r
- {% else %}\r
- src="{% media "/media/images/vote-arrow-down.png" %}" \r
- {% endif %}\r
- alt="{% trans "i dont like this post (click again to cancel)" %}"\r
- title="{% trans "i dont like this post (click again to cancel)" %}" />\r
- \r
- {% else %}\r
- <img id="question-img-upvote-{{ question.id }}" class="question-img-upvote" \r
- alt="{% trans "i like this post (click again to cancel)" %}"\r
- src="{% media "/media/images/vote-arrow-up.png" %}" \r
- title="{% trans "i like this post (click again to cancel)" %}" />\r
- <div id="question-vote-number-{{ question.id }}" class="vote-number" \r
- title="{% trans "current number of votes" %}">\r
- {{ question.score }}\r
- </div>\r
- <img id="question-img-downvote-{{ question.id }}" class="question-img-downvote" \r
- src="{% media "/media/images/vote-arrow-down.png" %}"\r
- alt="{% trans "i dont like this post (click again to cancel)" %}"\r
- title="{% trans "i dont like this post (click again to cancel)" %}" />\r
- {% endif %}\r
- {% if favorited %}\r
- <img class="question-img-favorite" src="{% media "/media/images/vote-favorite-on.png" %}"\r
- alt="{% trans "mark this question as favorite (click again to cancel)" %}"\r
- title="{% trans "mark this question as favorite (click again to cancel)" %}" />\r
- <div id="favorite-number" class="favorite-number my-favorite-number">\r
- {{ question.favourite_count }}\r
- </div>\r
- {% else %}\r
- <img class="question-img-favorite" src="{% media "/media/images/vote-favorite-off.png" %}"\r
- alt="{% trans "remove favorite mark from this question (click again to restore mark)" %}"\r
- title="{% trans "remove favorite mark from this question (click again to restore mark)" %}" />\r
- <div id="favorite-number" class="favorite-number">\r
- {% ifnotequal question.favourite_count 0 %}{{ question.favourite_count }}{% endifnotequal %}\r
- </div>\r
- {% endif %}\r
- \r