-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader
61 lines (58 loc) · 2.12 KB
/
header
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
49
50
51
52
53
54
55
56
57
58
59
60
<header class="container-fluid px-0 fw-nav-wrapper fixed-top">
<section class="bg-dark container-fluid">
<div class="container">
{% element 'link' %}
{
"url": "#fw-main-content",
"class": "visually-hidden visually-hidden-focusable p-8 my-12 btn btn-outline-primary",
"content": "{{ 'portal_translations.header.skip_content' | t }}"
}
{% endelement %}
</div>
</section>
{% if portal.current_page != "csat_survey" %}
<section class="container">
<nav class="navbar navbar-expand-xl navbar-light px-0 py-8 pt-xl-4 pb-xl-0">
{% element 'header/logo' %}
{
"linkback_url": "{{ portal.linkback_url }}",
"logo_url": "{{ portal.logo_url }}",
"name": "{{ portal.name | escape_once }}"
}
{% endelement %}
{% element 'hamburger' %}{}{% endelement %}
<div class="collapse navbar-collapse" id="navbarContent">
<ul class="navbar-nav ms-auto mt-64 mt-xl-0">
{% for tab in portal.tabs %}
<li class="nav-item {% if tab.tab_type == portal.current_tab %}active{% endif %}">
<a href="{{ tab.url }}" class="nav-link">
<span class="d-md-none icon-{{tab.tab_type}}"></span> {{tab.label}}
</a>
</li>
{% endfor %}
<li class="nav-item no-hover">
{{ portal | header_new_ticket_button }}
</li>
</ul>
<ul class="navbar-nav flex-row align-items-center ps-8 fw-nav-dropdown-wrapper">
{{ portal | header_user_navigation }}
<li class="nav-item dropdown no-hover ms-auto">
{{portal | header_language_list }}
</li>
</ul>
</div>
</nav>
</section>
<div class="nav-overlay d-none"></div>
{% else %}
<section class="container">
<nav class="navbar navbar-expand-xl navbar-light px-0 py-16 pt-xl-4 pb-xl-0">
{% element 'header/logo' %}
{
"logo_url": "{{ portal.logo_url }}"
}
{% endelement %}
</nav>
</section>
{% endif %}
</header>