Closes #16928: Add help center button to top nav

This commit is contained in:
Jeremy Stretch 2024-07-24 14:10:37 -04:00
parent 909ee7d543
commit 8409ca9fd2

View File

@ -1,11 +1,18 @@
{% load i18n %} {% load i18n %}
{% load navigation %} {% load navigation %}
{% if 'help-center' in settings.RELEASE.features %}
{# Help center control #}
<a href="#" class="nav-link px-1" aria-label="{% trans "Help center" %}">
<i class="mdi mdi-forum-outline"></i>
</a>
{% endif %}
{% if request.user.is_authenticated %} {% if request.user.is_authenticated %}
{# Notifications #} {# Notifications #}
{% with notifications=request.user.notifications.unread.exists %} {% with notifications=request.user.notifications.unread.exists %}
<div class="nav-item dropdown"> <div class="dropdown">
<a href="#" class="nav-link" data-bs-toggle="dropdown" hx-get="{% url 'extras:notifications' %}" hx-target="next .notifications" aria-label="Notifications"> <a href="#" class="nav-link px-1" data-bs-toggle="dropdown" hx-get="{% url 'extras:notifications' %}" hx-target="next .notifications" aria-label="{% trans "Notifications" %}">
{% include 'inc/notification_bell.html' %} {% include 'inc/notification_bell.html' %}
</a> </a>
<div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications"></div> <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications"></div>