summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/month_view.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/month_view.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/month_view.html')
-rw-r--r--hyperkitty/templates/month_view.html14
1 files changed, 1 insertions, 13 deletions
diff --git a/hyperkitty/templates/month_view.html b/hyperkitty/templates/month_view.html
index 802c1e6..41c8275 100644
--- a/hyperkitty/templates/month_view.html
+++ b/hyperkitty/templates/month_view.html
@@ -80,19 +80,7 @@
</li>
</ul>
<ul class="inline-block">
- <form method="post" action="{% url message_vote mlist_fqdn=list_address %}">
- <input type="hidden" name="hashid" value="{{ thread.thread_id }}" />
- {% csrf_token %}
- <li class="likestatus {{ thread.likestatus }}">
- +<span class="like">{{ thread.avglike }}</span>/-<span class="dislike">{{ thread.avgdislike }}</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>
+ {% include "messages/like_form.html" with hashid=thread.thread_id object=thread %}
</ul>
<a href="{% url thread threadid=thread.thread_id, mlist_fqdn=list_address %}"
class="btn">Show discussion</a>