diff options
author | Vitaly Takmazov | 2018-04-12 12:16:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-12 12:16:47 +0300 |
commit | e24f7a7ce9eb765aa2f581defbe20433a647700d (patch) | |
tree | 7b2ecf44396504df8c577a18c9347c563a73fb0d /juick-www/src/main/resources/templates | |
parent | b23f3b9182d78dfabb37b6a1c21d060a365b2574 (diff) |
www: badge for unread thread
Diffstat (limited to 'juick-www/src/main/resources/templates')
-rw-r--r-- | juick-www/src/main/resources/templates/views/partial/message.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/juick-www/src/main/resources/templates/views/partial/message.html b/juick-www/src/main/resources/templates/views/partial/message.html index 9e3ede6c..2e3667f2 100644 --- a/juick-www/src/main/resources/templates/views/partial/message.html +++ b/juick-www/src/main/resources/templates/views/partial/message.html @@ -54,7 +54,13 @@ <a href="/{{ msg.mid }}" class="a-comment msg-button"> <span class="msg-button-icon"> <i data-icon="ei-comment" data-size="s"></i> - {% if msg.Replies > 0 %} {{ msg.Replies }}{% endif %} + {% if msg.Replies > 0 %} + {% if msg.unread %} + <span class="badge">{{ msg.Replies }}</span> + {% else %} + {{ msg.Replies }} + {% endif %} + {% endif %} </span> <span> {{ i18n("messages","message.comment") }}</span> </a> |