summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r--hyperkitty/templates/messages/message.html6
-rw-r--r--hyperkitty/templates/thread.html2
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>