-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathnavbar_header.html
More file actions
48 lines (46 loc) · 2.29 KB
/
navbar_header.html
File metadata and controls
48 lines (46 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{% load i18n static %}
{% url 'product_portfolio:product_list' as product_list_url %}
{% url 'component_catalog:component_list' as component_list_url %}
{% url 'component_catalog:package_list' as package_list_url %}
{% url 'license_library:license_list' as license_list_url %}
{% url 'organization:owner_list' as owner_list_url %}
{% url 'global_search' as global_search_url %}
{% url 'product_portfolio:compliance_dashboard' as compliance_dashboard_url %}
{% url 'reporting:report_list' as report_list_url %}
{% url 'workflow:request_list' as request_list_url %}
{% url 'component_catalog:scan_list' as scan_list_url %}
{% url 'purldb:purldb_list' as purldb_list_url %}
{% url 'vulnerabilities:vulnerability_list' as vulnerability_list_url %}
{% url 'django_registration_register' as register_url %}
{% url 'api_v2:api-root' as api_root_url %}
{% url 'account_profile' as account_profile_url %}
<nav class="navbar navbar-expand-xl fixed-top">
{# If the anonymous feature is enabled, the user will have a dataspace assigned at that point #}
{% if not user.is_authenticated and not user.dataspace %}
<a class="navbar-brand" href="{% url 'index_dispatch' %}">{{ SITE_TITLE }}</a>
{% else %}
{% block nav-brand %}
<div class="navbar-brand">{{ SITE_TITLE }}</div>
{% endblock %}
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#navbarOffcanvas" aria-controls="navbarOffcanvas" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="offcanvas offcanvas-end" tabindex="-1" id="navbarOffcanvas">
<div class="offcanvas-header text-white pb-0">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel">Menu</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<ul class="navbar-nav">
{% include 'includes/navbar_header_left_menu.html' %}
{% include 'includes/navbar_header_tools_menu.html' %}
</ul>
<ul class="navbar-nav ms-xl-auto">
{% include 'includes/navbar_header_search_form.html' %}
{% include 'includes/navbar_header_right_menu.html' %}
</ul>
</div>
</div>
{% endif %}
</nav>
{% include 'includes/search_help_modal.html' %}