mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 03:56:53 -06:00
Closes #16928: Add help center button to top nav
This commit is contained in:
parent
909ee7d543
commit
8409ca9fd2
@ -1,11 +1,18 @@
|
||||
{% load i18n %}
|
||||
{% 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 %}
|
||||
{# Notifications #}
|
||||
{% with notifications=request.user.notifications.unread.exists %}
|
||||
<div class="nav-item dropdown">
|
||||
<a href="#" class="nav-link" data-bs-toggle="dropdown" hx-get="{% url 'extras:notifications' %}" hx-target="next .notifications" aria-label="Notifications">
|
||||
<div class="dropdown">
|
||||
<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' %}
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user