aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-30 10:36:55 +0000
committerMario <mario@mariovavti.com>2022-11-30 10:36:55 +0000
commitbaf1b8b02de4ef3d62a2fd9126cbc05de1bf8711 (patch)
treeb8077a9755f2e2c23cc05d315c6a9bbc36e35ccd /view/tpl
parent3ce1373ae0e5355b9d10eab5f5b8078245c4b8b6 (diff)
downloadvolse-hubzilla-baf1b8b02de4ef3d62a2fd9126cbc05de1bf8711.tar.gz
volse-hubzilla-baf1b8b02de4ef3d62a2fd9126cbc05de1bf8711.tar.bz2
volse-hubzilla-baf1b8b02de4ef3d62a2fd9126cbc05de1bf8711.zip
fetch the unseen count in a subquery instead of a separate query and rename array key
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/messages_widget.tpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/view/tpl/messages_widget.tpl b/view/tpl/messages_widget.tpl
index 495f93ef7..ee933b392 100644
--- a/view/tpl/messages_widget.tpl
+++ b/view/tpl/messages_widget.tpl
@@ -53,8 +53,8 @@
<div class="text-break">{{$e.summary}}</div>
</div>
<small>{{$e.info}}</small>
- {{if $e.unseen}}
- <span class="badge bg-transparent border border-{{$e.unseen_class}} text-{{$e.unseen_class}} rounded-pill position-absolute bottom-0 end-0 m-2" title="{{$strings.unseen}}">{{$e.unseen}}</span>
+ {{if $e.unseen_count}}
+ <span class="badge bg-transparent border border-{{$e.unseen_class}} text-{{$e.unseen_class}} rounded-pill position-absolute bottom-0 end-0 m-2" title="{{$strings.unseen_count}}">{{$e.unseen_count}}</span>
{{/if}}
</a>
{{/foreach}}
@@ -129,7 +129,7 @@
e.author_addr,
e.href,
e.icon,
- e.unseen ? '<span class="badge bg-transparent border border-' + e.unseen_class + ' text-' + e.unseen_class + ' rounded-pill position-absolute bottom-0 end-0 m-2" title="{{$strings.unseen}}">' + e.unseen + '</span>' : ''
+ e.unseen_count ? '<span class="badge bg-transparent border border-' + e.unseen_class + ' text-' + e.unseen_class + ' rounded-pill position-absolute bottom-0 end-0 m-2" title="{{$strings.unseen_count}}">' + e.unseen_count + '</span>' : ''
);
$('#messages-loading').before(html);
});