diff options
author | Mario <mario@mariovavti.com> | 2022-11-18 10:43:33 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-11-18 10:43:33 +0000 |
commit | 59e6989cbcc90ae13eb175e4f1730a9c9d4fc6cd (patch) | |
tree | d1a13f8f457f90aba0fb6aa13fc62a094c0f6cbf /view/tpl/messages_widget.tpl | |
parent | 0e6b27c9f46141c3ca92fc8dddc51d866cf5f3c9 (diff) | |
download | volse-hubzilla-59e6989cbcc90ae13eb175e4f1730a9c9d4fc6cd.tar.gz volse-hubzilla-59e6989cbcc90ae13eb175e4f1730a9c9d4fc6cd.tar.bz2 volse-hubzilla-59e6989cbcc90ae13eb175e4f1730a9c9d4fc6cd.zip |
hq widget: implement thread unseen items count
Diffstat (limited to 'view/tpl/messages_widget.tpl')
-rw-r--r-- | view/tpl/messages_widget.tpl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/view/tpl/messages_widget.tpl b/view/tpl/messages_widget.tpl index ddb21beb5..90f8e13c7 100644 --- a/view/tpl/messages_widget.tpl +++ b/view/tpl/messages_widget.tpl @@ -36,6 +36,7 @@ <div class="text-break">{2}</div> </div> <small>{3}</small> + {8} </a> </div> <div id="dm-container" class="list-group list-group-flush" data-offset="10"> @@ -52,6 +53,9 @@ <div class="text-break">{{$e.summary}}</div> </div> <small>{{$e.info}}</small> + {{if $e.unseen}} + <span class="badge bg-primary rounded-pill position-absolute bottom-0 end-0 m-2" title="{{$strings.unseen}}">{{$e.unseen}}</span> + {{/if}} </a> {{/foreach}} <div id="messages-empty" class="list-group-item border-0"{{if $entries}} style="display: none;"{{/if}}> @@ -124,7 +128,8 @@ e.author_name, e.author_addr, e.href, - e.icon + e.icon, + e.unseen ? '<span class="badge bg-primary rounded-pill position-absolute bottom-0 end-0 m-2" title="{{$strings.unseen}}">' + e.unseen + '</span>' : '' ); $('#messages-loading').before(html); }); |