July 6 - Adjust the Admin menu, grouping functions 3
This commit is contained in:
+6
-16
@@ -199,38 +199,28 @@
|
|||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link dropdown-toggle {{ 'active' if admin_active }}"
|
<a class="nav-link dropdown-toggle {{ 'active' if admin_active }}"
|
||||||
href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
<i class="bi bi-gear-fill me-1"></i>Admin
|
Admin
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu dropdown-menu-end">
|
<ul class="dropdown-menu dropdown-menu-end">
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item {{ 'active' if request.endpoint and request.endpoint.startswith('auth.') and 'user' in request.endpoint }}"
|
<a class="dropdown-item {{ 'active' if request.endpoint and request.endpoint.startswith('auth.') and 'user' in request.endpoint }}"
|
||||||
href="{{ url_for('auth.list_users') }}">
|
href="{{ url_for('auth.list_users') }}">Users</a>
|
||||||
<i class="bi bi-people-fill me-2"></i>Users
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item {{ 'active' if request.endpoint and request.endpoint.startswith('audit.') }}"
|
<a class="dropdown-item {{ 'active' if request.endpoint and request.endpoint.startswith('audit.') }}"
|
||||||
href="{{ url_for('audit.index') }}">
|
href="{{ url_for('audit.index') }}">Audit Trail</a>
|
||||||
<i class="bi bi-clipboard-data me-2"></i>Audit Trail
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item {{ 'active' if request.endpoint == 'auth.notification_matrix' }}"
|
<a class="dropdown-item {{ 'active' if request.endpoint == 'auth.notification_matrix' }}"
|
||||||
href="{{ url_for('auth.notification_matrix') }}">
|
href="{{ url_for('auth.notification_matrix') }}">Notification Matrix</a>
|
||||||
<i class="bi bi-grid-3x3-gap-fill me-2"></i>Notification Matrix
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item {{ 'active' if request.endpoint and request.endpoint.startswith('broadcast.') }}"
|
<a class="dropdown-item {{ 'active' if request.endpoint and request.endpoint.startswith('broadcast.') }}"
|
||||||
href="{{ url_for('broadcast.index') }}">
|
href="{{ url_for('broadcast.index') }}">Broadcast</a>
|
||||||
<i class="bi bi-megaphone-fill me-2"></i>Broadcast
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a class="dropdown-item {{ 'active' if request.endpoint and request.endpoint.startswith('devices.') }}"
|
<a class="dropdown-item {{ 'active' if request.endpoint and request.endpoint.startswith('devices.') }}"
|
||||||
href="{{ url_for('devices.index') }}">
|
href="{{ url_for('devices.index') }}">Devices</a>
|
||||||
<i class="bi bi-tablet me-2"></i>Devices
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user