]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/node/vote_buttons.html
OSQA-662. Send the CSRF token with the AJAX post requests.
[osqa.git] / forum / skins / default / templates / node / vote_buttons.html
1 {% load i18n %}\r
2 \r
3 <a id="post-{{ post.id }}-upvote" title="{% trans "I like this post (click again to cancel)" %}"\r
4     class="ajax-command post-vote up {% ifequal user_vote "up" %} on{% endifequal %}"\r
5      href="{% url vote_post id=post.id,vote_type='up' %}" rel="nofollow"> </a>\r
6 <div id="post-{{ post.id }}-score" class="post-score"\r
7     title="{% trans "current number of votes" %}">\r
8     {{ post.score }}\r
9 </div>\r
10 <a id="post-{{ post.id }}-downvote" title="{% trans "I dont like this post (click again to cancel)" %}"\r
11     class="ajax-command post-vote down{% ifequal user_vote "down" %} on{% endifequal %}"\r
12      href="{% url vote_post id=post.id,vote_type='down' %}" rel="nofollow"> </a>