We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f36a9b commit 98b5138Copy full SHA for 98b5138
adhocracy-plus/templates/includes/header_notification_button.html
@@ -4,9 +4,11 @@
4
<a href="{% url 'userdashboard-notifications' %}"
5
class="btn btn-default position-relative rounded-circle notifications_btn d-flex align-items-center justify-content-center"
6
aria-label="Notifications"
7
- hx-get="{% url 'notification-count-partial' %}"
8
- hx-trigger="updateNotificationCount from:body, every 15s"
9
- hx-target=".notification-badge-container">
+ {% if user.is_authenticated %}
+ hx-get="{% url 'notification-count-partial' %}"
+ hx-trigger="updateNotificationCount from:body, every 15s"
10
+ hx-target=".notification-badge-container">
11
+ {% endif %}>
12
13
<i class="fas fa-bell"></i>
14
<span class="notification-badge-container">
0 commit comments