Poll for notifications

This commit is contained in:
Mouse Reeve
2021-01-18 16:32:02 -08:00
parent dda4698a84
commit 394666357f
5 changed files with 45 additions and 5 deletions

View File

@ -113,9 +113,9 @@
<span class="is-sr-only">Notifications</span>
</span>
</span>
{% if request.user|notification_count %}
<span class="tag is-danger is-medium">{{ request.user | notification_count }}</span>
{% endif %}
<span class="{% if not request.user|notification_count %}hidden {% endif %}tag is-danger is-medium" data-poll="notifications">
{{ request.user | notification_count }}
</span>
</div>
</a>
</div>