summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/messages
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-07 11:05:54 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-07 11:08:01 +0100
commitbe47fc55a268d80308cb9354c0b9f3c7e78b24b3 (patch)
tree915428eae8676da965ff6b4f88593ad89d1781fd /hyperkitty/templates/messages
parent4d37a525e8e5df3c13d98ffe534476fd5973d918 (diff)
downloadhyperkitty-be47fc55a268d80308cb9354c0b9f3c7e78b24b3.tar.gz
hyperkitty-be47fc55a268d80308cb9354c0b9f3c7e78b24b3.tar.xz
hyperkitty-be47fc55a268d80308cb9354c0b9f3c7e78b24b3.zip
Add a tooltip when login is required (#36)
This needs a rebuild of the jquery-ui package. It has been applied to: - inline replies - like/dislike links - favorites
Diffstat (limited to 'hyperkitty/templates/messages')
-rw-r--r--hyperkitty/templates/messages/like_form.html4
-rw-r--r--hyperkitty/templates/messages/reply_form.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/hyperkitty/templates/messages/like_form.html b/hyperkitty/templates/messages/like_form.html
index c27eaeb..39f5c6d 100644
--- a/hyperkitty/templates/messages/like_form.html
+++ b/hyperkitty/templates/messages/like_form.html
@@ -4,8 +4,8 @@
<span class="likestatus {{ object.likestatus }}">
+<span class="likecount">{{ object.likes }}</span>/-<span class="dislikecount">{{ object.dislikes }}</span>
</span>
- <a class="youlike" href="#like">Like</a>
- <a class="youdislike" href="#dislike">Dislike</a>
+ <a class="youlike{% if not user.is_authenticated %} disabled" title="You must be logged-in to vote.{% endif %}" href="#like">Like</a>
+ <a class="youdislike{% if not user.is_authenticated %} disabled" title="You must be logged-in to vote.{% endif %}" href="#dislike">Dislike</a>
</form>
{# vim: set noet: #}
diff --git a/hyperkitty/templates/messages/reply_form.html b/hyperkitty/templates/messages/reply_form.html
index e1138f2..15a0ddb 100644
--- a/hyperkitty/templates/messages/reply_form.html
+++ b/hyperkitty/templates/messages/reply_form.html
@@ -1,4 +1,4 @@
- <a class="reply icon-envelope" href="#">Reply</a>
+ <a class="reply{% if not user.is_authenticated %} disabled" title="You must be logged-in to reply.{% endif %}" href="#">Reply</a>
<div class="reply-form dropdown">
<p class="reply-tools">[<a href="#" class="quote">Quote</a>]</p>
<form method="post"