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/threads/summary_thread_large.html12
2 files changed, 11 insertions, 7 deletions
diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html
index 44ffc9f..6a42066 100644
--- a/hyperkitty/templates/messages/message.html
+++ b/hyperkitty/templates/messages/message.html
@@ -3,8 +3,8 @@
{% load gravatar %}
{% load hk_generic %}
-{% is_message_new as is_new %}
-<div class="email{% if unfolded %} email-first{% endif %}{% if is_new %} new-message{% endif %}">
+{% is_message_new email.date as is_new %}
+<div class="email{% if unfolded %} email-first{% endif %}{% if is_new %} unread{% endif %}">
<div class="email-header" id="{{email.message_id_hash}}">
<div class="email-date inline-block pull-right">
@@ -20,7 +20,7 @@
<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>
+ <i class="unread icon-eye-close" title="Unread"></i>
{% endif %}
<div class="gravatar{% if use_mockups %} pull-left{% endif %}">
{% gravatar email.sender_email 40 %}
diff --git a/hyperkitty/templates/threads/summary_thread_large.html b/hyperkitty/templates/threads/summary_thread_large.html
index 66b1a78..cea2be2 100644
--- a/hyperkitty/templates/threads/summary_thread_large.html
+++ b/hyperkitty/templates/threads/summary_thread_large.html
@@ -3,11 +3,15 @@
{% load hk_generic %}
{% load storm %}
- <div class="thread">
+ <div class="thread{% if thread.unread %} unread{% endif %}">
<div class="{% if thread.favorite %}saved{% else %}notsaved{% endif %}">
- <span class="thread-title"><a name="{{thread.thread_id}}"
- href="{% url 'thread' threadid=thread.thread_id mlist_fqdn=mlist.name %}"
- >{{ thread.starting_email.subject|strip_subject:mlist }}</a></span>
+ <span class="thread-title">
+ {% if thread.unread %}
+ <i class="unread icon-eye-close" title="Unread"></i>
+ {% endif %}
+ <a name="{{thread.thread_id}}"
+ href="{% url 'thread' threadid=thread.thread_id mlist_fqdn=mlist.name %}"
+ >{{ thread.starting_email.subject|strip_subject:mlist }}</a></span>
<span class="thread-date">{{thread.date_active|timesince }}</span>
</div>
<div class="thread-content">