aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/resources
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-12 12:16:47 +0300
committerGravatar Vitaly Takmazov2018-04-12 12:16:47 +0300
commite24f7a7ce9eb765aa2f581defbe20433a647700d (patch)
tree7b2ecf44396504df8c577a18c9347c563a73fb0d /juick-www/src/main/resources
parentb23f3b9182d78dfabb37b6a1c21d060a365b2574 (diff)
www: badge for unread thread
Diffstat (limited to 'juick-www/src/main/resources')
-rw-r--r--juick-www/src/main/resources/templates/views/partial/message.html8
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 %}&nbsp;{{ msg.Replies }}{% endif %}
+ {% if msg.Replies > 0 %}&nbsp;
+ {% if msg.unread %}
+ <span class="badge">{{ msg.Replies }}</span>
+ {% else %}
+ {{ msg.Replies }}
+ {% endif %}
+ {% endif %}
</span>
<span>&nbsp;{{ i18n("messages","message.comment") }}</span>
</a>