summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/messages/like_form.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-12-10 12:25:38 +0100
committerAurélien Bompard <aurelien@bompard.org>2012-12-10 12:25:38 +0100
commite324f9e52b2f78cdcc0dcb0046c8effe820ccf67 (patch)
tree616562600b4b964c21308ef4f85ba2561b37b87d /hyperkitty/templates/messages/like_form.html
parenta9636afdec4029745e9cdb88fbebdf674426828e (diff)
downloadhyperkitty-e324f9e52b2f78cdcc0dcb0046c8effe820ccf67.tar.gz
hyperkitty-e324f9e52b2f78cdcc0dcb0046c8effe820ccf67.tar.xz
hyperkitty-e324f9e52b2f78cdcc0dcb0046c8effe820ccf67.zip
Factor the like/dislike form in a separate file
Diffstat (limited to 'hyperkitty/templates/messages/like_form.html')
-rw-r--r--hyperkitty/templates/messages/like_form.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/hyperkitty/templates/messages/like_form.html b/hyperkitty/templates/messages/like_form.html
new file mode 100644
index 0000000..ba78ede
--- /dev/null
+++ b/hyperkitty/templates/messages/like_form.html
@@ -0,0 +1,16 @@
+ <form method="post" class="likeform"
+ action="{% url message_vote mlist_fqdn=list_address %}">
+ <input type="hidden" name="hashid" value="{{ hashid }}" />
+ {% csrf_token %}
+ <li class="likestatus {{ object.likestatus }}">
+ +<span class="likecount">{{ object.likes }}</span>/-<span class="dislikecount">{{ object.dislikes }}</span>
+ </li>
+ <li class="voteup">
+ <a class="youlike" href="#like">Like</a>
+ </li>
+ <li class="votedown">
+ <a class="youdislike" href="#dislike">Dislike</a>
+ </li>
+ </form>
+
+{# vim: set noet: #}