summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/threads
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-06-03 20:23:45 +0200
committerAurélien Bompard <aurelien@bompard.org>2013-06-03 20:23:45 +0200
commitfcdaa7f3fd2b830ca566386a1711070407c7f191 (patch)
tree24648e4e8c299addc68d44445c52d4d5cf35fd12 /hyperkitty/templates/threads
parent30be2dbbcff4b01869bbb0120eb6679cc4b55cd0 (diff)
downloadhyperkitty-fcdaa7f3fd2b830ca566386a1711070407c7f191.tar.gz
hyperkitty-fcdaa7f3fd2b830ca566386a1711070407c7f191.tar.xz
hyperkitty-fcdaa7f3fd2b830ca566386a1711070407c7f191.zip
Add a navigation bar to skip through unread messages
Diffstat (limited to 'hyperkitty/templates/threads')
-rw-r--r--hyperkitty/templates/threads/right_col.html18
1 files changed, 17 insertions, 1 deletions
diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html
index 7f200fc..5011993 100644
--- a/hyperkitty/templates/threads/right_col.html
+++ b/hyperkitty/templates/threads/right_col.html
@@ -23,6 +23,7 @@
old
</div>
</div>
+ <!-- End dates -->
<form id="fav_form" name="favorite" method="post" class="favorite"
action="{% url 'favorite' mlist_fqdn=mlist.name threadid=threadid %}">
{% csrf_token %}
@@ -32,7 +33,11 @@
<a href="#RmFav" class="saved">Remove from favorite discussions</a>
</p>
</form>
- <!-- End dates -->
+ <p class="unread">
+ {% if user.is_authenticated %}
+ <i class="unread icon-eye-close"></i> {{ unread_count }} unread messages
+ {% endif %}
+ </p>
<div id="tags">
{% include 'threads/tags.html' %}
</div>
@@ -56,4 +61,15 @@
</div>
</section>
+{% if user.is_authenticated %}
+<div id="unreadnavbar">
+ <div>
+ Unreads: <span class="unreadindex">0</span>/{{unread_count}}
+ &nbsp;
+ Go to: <a href="#" class="nextunread">next &darr;</a>
+ - <a href="#" class="prevunread">prev &uarr;</a>
+ </div>
+</div>
+{% endif %}
+
{# vim: set noet: #}