Handle count of notifications banner

This commit is contained in:
Joachim
2021-11-24 19:00:30 +01:00
parent 2ad37a22dd
commit db5e7a886a
5 changed files with 78 additions and 3 deletions

View File

@ -54,6 +54,7 @@
{% if not activities.number > 1 %}
<a href="{{ request.path }}" class="transition-y is-hidden notification is-primary is-block" data-poll-wrapper>
{% blocktrans with tab_key=tab.key %}load <span data-poll="stream/{{ tab_key }}">0</span> unread status(es){% endblocktrans %}
{{ allowed_status_types|json_script:"unread-notifications-wrapper" }}
</a>
{% if request.user.show_goal and not goal and tab.key == 'home' %}