From fcdaa7f3fd2b830ca566386a1711070407c7f191 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Mon, 3 Jun 2013 20:23:45 +0200 Subject: Add a navigation bar to skip through unread messages --- hyperkitty/templates/thread.html | 62 ++++++++++++++--------------- hyperkitty/templates/threads/right_col.html | 18 ++++++++- 2 files changed, 48 insertions(+), 32 deletions(-) (limited to 'hyperkitty/templates') diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index a25046e..e8b8139 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -31,38 +31,38 @@
-
- -
- - - {% include 'messages/message.html' with email=first_mail unfolded='True' %} - - -

- {% if sort_mode == "date" %} - Show replies by thread - {% else %} - Show replies by date - {% endif %} -

- -
- {% if is_bot %} - {% include 'ajax/replies.html' %} - {% else %} - Loading... - {% endif %} +
+ +
+ + + {% include 'messages/message.html' with email=first_mail unfolded='True' %} + + +

+ {% if sort_mode == "date" %} + Show replies by thread + {% else %} + Show replies by date + {% endif %} +

+ +
+ {% if is_bot %} + {% include 'ajax/replies.html' %} + {% else %} + Loading... + {% endif %} +
+ +
-
-
- -
- {% include 'threads/right_col.html' %} -
+
+ {% include 'threads/right_col.html' %} +
@@ -81,7 +81,7 @@ fold_quotes(); // Load the replies update_thread_replies("{% url 'thread_replies' threadid=threadid mlist_fqdn=mlist.name %}?sort={{sort_mode}}&last_view={{last_view|date:'U'}}"); - setup_navkeys(); + setup_unreadnavbar("#unreadnavbar"); }); 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 +
{% csrf_token %} @@ -32,7 +33,11 @@ Remove from favorite discussions

- +

+ {% if user.is_authenticated %} + {{ unread_count }} unread messages + {% endif %} +

{% include 'threads/tags.html' %}
@@ -56,4 +61,15 @@ +{% if user.is_authenticated %} +
+
+ Unreads: 0/{{unread_count}} +   + Go to: next ↓ + - prev ↑ +
+
+{% endif %} + {# vim: set noet: #} -- cgit