diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-05-22 13:18:26 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-05-22 16:07:38 +0200 |
commit | 1eeef494e6cb6c23f207be8715ff39c0e52e3c37 (patch) | |
tree | 2d6c84ca477aa1fd95632dbf73dbd564df6f5f06 /hyperkitty/templates | |
parent | cf660d3684d5c839ee9e860c205aa81abf97eb6d (diff) | |
download | hyperkitty-1eeef494e6cb6c23f207be8715ff39c0e52e3c37.tar.gz hyperkitty-1eeef494e6cb6c23f207be8715ff39c0e52e3c37.tar.xz hyperkitty-1eeef494e6cb6c23f207be8715ff39c0e52e3c37.zip |
Track unread threads
And display markers on unread posts in the thread view.
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r-- | hyperkitty/templates/messages/message.html | 6 | ||||
-rw-r--r-- | hyperkitty/templates/thread.html | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html index 9b072ef..44ffc9f 100644 --- a/hyperkitty/templates/messages/message.html +++ b/hyperkitty/templates/messages/message.html @@ -3,7 +3,8 @@ {% load gravatar %} {% load hk_generic %} -<div class="email{% if unfolded %} email-first{% endif %}"> +{% is_message_new as is_new %} +<div class="email{% if unfolded %} email-first{% endif %}{% if is_new %} new-message{% endif %}"> <div class="email-header" id="{{email.message_id_hash}}"> <div class="email-date inline-block pull-right"> @@ -18,6 +19,9 @@ {% if unfolded %}<br />{% endif %} <span class="time" title="Sender's time: {{email|sender_date|date:"l, j F H:i:s"}}">{{email|viewer_date|date:"H:i:s"}}</span> </div> + {% if is_new %} + <i class="new-message icon-eye-close"></i> + {% endif %} <div class="gravatar{% if use_mockups %} pull-left{% endif %}"> {% gravatar email.sender_email 40 %} </div> diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html index a198014..78ef424 100644 --- a/hyperkitty/templates/thread.html +++ b/hyperkitty/templates/thread.html @@ -80,7 +80,7 @@ // Hide quotes by default in the thread view fold_quotes() // Load the replies - update_thread_replies("{% url 'thread_replies' threadid=threadid mlist_fqdn=mlist.name %}?sort={{sort_mode}}"); + update_thread_replies("{% url 'thread_replies' threadid=threadid mlist_fqdn=mlist.name %}?sort={{sort_mode}}&last_view={{last_view|date:'U'}}"); }); </script> |