summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
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
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')
-rw-r--r--hyperkitty/templates/base.html4
-rw-r--r--hyperkitty/templates/messages/like_form.html4
-rw-r--r--hyperkitty/templates/messages/reply_form.html2
-rw-r--r--hyperkitty/templates/threads/right_col.html2
4 files changed, 6 insertions, 6 deletions
diff --git a/hyperkitty/templates/base.html b/hyperkitty/templates/base.html
index 424c86a..f8eb95e 100644
--- a/hyperkitty/templates/base.html
+++ b/hyperkitty/templates/base.html
@@ -8,7 +8,7 @@
<meta name="dc.language" content="en" />
<link rel="shortcut icon" href="{{ STATIC_URL }}img/favicon.ico" />
<link rel="stylesheet" media="screen" href="{{ STATIC_URL }}libs/bootstrap/bootstrap.min.css" />
- <link rel="stylesheet" media="screen" href="{{ STATIC_URL }}libs/jquery/ui-lightness/jquery-ui-1.9.1.custom.min.css" />
+ <link rel="stylesheet" media="screen" href="{{ STATIC_URL }}libs/jquery/ui-lightness/jquery-ui-1.10.0.custom.min.css" />
<link rel="stylesheet" media="all" href="{{ STATIC_URL }}css/hyperkitty.css" />
{% block additional_stylesheets %} {% endblock %}
</head>
@@ -60,7 +60,7 @@
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ STATIC_URL }}libs/jquery/jquery-1.8.3.min.js"><\/script>')</script>
- <script src="{{ STATIC_URL }}libs/jquery/jquery-ui-1.9.1.custom.min.js"></script>
+ <script src="{{ STATIC_URL }}libs/jquery/jquery-ui-1.10.0.custom.min.js"></script>
<script src="{{ STATIC_URL }}libs/bootstrap/bootstrap.min.js"></script>
<script src="{{ STATIC_URL }}js/hyperkitty.js"></script>
{% block additionaljs %} {% endblock %}
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"
diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html
index 60bed09..355663d 100644
--- a/hyperkitty/templates/threads/right_col.html
+++ b/hyperkitty/templates/threads/right_col.html
@@ -27,7 +27,7 @@
{% csrf_token %}
<input type="hidden" name="action" value="{{ fav_action }}" />
<p>
- <a href="#AddFav" class="notsaved">Add to favorite discussions</a>
+ <a href="#AddFav" class="notsaved{% if not user.is_authenticated %} disabled" title="You must be logged-in to have favorites.{% endif %}">Add to favorite discussions</a>
<a href="#RmFav" class="saved">Remove from favorite discussions</a>
</p>
</form>