-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbase.html
More file actions
165 lines (160 loc) · 7.32 KB
/
Copy pathbase.html
File metadata and controls
165 lines (160 loc) · 7.32 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{% load static %}
{% load django_vite %}
<!DOCTYPE html>
<html lang="en" dir="auto">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title class="notranslate">
{% block title %}
{% endblock title %}
</title>
{% vite_hmr_client %}
<!-- Keep the Google Translate external script -->
<script type="text/javascript"
src="//translate.google.com/translate_a/element.js"></script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-M2JTBSHC');
</script>
<!-- End Google Tag Manager -->
<link rel="stylesheet" href="{% static 'assets/css/global.css' %}" />
{% vite_asset 'src/main.ts' %}
{% vite_asset 'src/instruments/Suggest.ts' %}
{% block ts_files %}
{% endblock ts_files %}
{% block css_files %}
{% endblock css_files %}
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M2JTBSHC"
height="0"
width="0"
style="display:none;
visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<header class="p-3 sticky-top align-content-center bg-primary min-vh-10 vw-100 force-ltr">
<div class="container">
<nav class="navbar navbar-expand-lg">
<!-- Brand/Logo - always visible -->
{% comment %} <a class="navbar-brand nav-home notranslate {% if active_tab == 'home' %}active{% endif %}" href="{% url "main:home" %}">UMIL</a> {% endcomment %}
<!-- Hamburger toggle button - only visible on mobile -->
<button class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarMenu"
aria-controls="navbarMenu"
aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Collapsible content -->
<div class="collapse navbar-collapse bg-primary" id="navbarMenu">
<ul class="navbar-nav me-lg-auto mx-auto mx-lg-0 text-center text-lg-start pb-1">
<li class="nav-item">
<a href="{% url "main:home" %}"
class="nav-link notranslate {% if active_tab == 'home' %}active{% endif %}">UMIL</a>
</li>
<li class="nav-item">
<a href="{% url "instrument-list" %}"
class="nav-link {% if active_tab == 'instruments' %}active{% endif %}">Instruments</a>
</li>
<li class="nav-item">
<a href="{% url "main:about" %}"
class="nav-link {% if active_tab == 'about' %}active{% endif %}">About</a>
</li>
</ul>
<form class="col-12 col-lg-auto mb-3 mb-lg-0 me-lg-3 force-rtl position-relative"
role="search"
action="{% url 'instrument-list' %}"
method="get">
<input type="search"
id="instrument-search"
name="query"
class="form-control search-input"
placeholder="Search..."
aria-label="Search"
autocomplete="off" />
<div id="autocomplete-list"
class="list-group position-absolute w-100 d-none bg-white small">
</div>
</form>
<!-- Right side content (user menu + translate) -->
<div class="d-flex align-items-center justify-content-center justify-content-lg-end">
{% if user.is_authenticated %}
<div class="dropdown me-2">
<button class="btn dropdown-toggle btn-outline-light"
type="button"
data-bs-toggle="dropdown"
aria-expanded="false">
<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
fill="currentColor"
width="20"
height="20"
aria-label="user icon">
<path d="M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z" />
</svg>
</button>
<ul class="dropdown-menu umil-dropdown-menu"
aria-labelledby="userDropdown">
<li>
<p class="dropdown-item mb-0 umil-dropdown-item disabled notranslate">
{{ user.username }}
</p>
</li>
<hr class="dropdown-divider" />
<li>
<a class="dropdown-item umil-dropdown-item"
href="{% url 'main:change_password' %}">Change Password</a>
</li>
<li>
<a class="dropdown-item umil-dropdown-item"
href="{% url 'main:logout' %}">Log out</a>
</li>
</ul>
</div>
{% else %}
<a href="{% url 'main:login' %}">
<button type="button" class="btn me-2 btn-outline-light">Login</button>
</a>
{% endif %}
<div id="google_translate_element"
class="d-flex align-items-center position-relative btn btn-outline-light"
data-bs-toggle="tooltip"
data-bs-title="Web Page Language"
aria-label="Web Page Language"
aria-pressed="true"></div>
</div>
</div>
</nav>
</div>
</header>
<main class="bg-light min-vh-80">
{% block content %}
{% endblock content %}
</main>
<footer class="d-flex bg-light flex-column flex-md-row justify-content-center align-items-center py-1 border-top min-vh-10">
<a href="https://ddmal.music.mcgill.ca/"
class="my-1 mx-3 link-body-emphasis text-decoration-none">
<img src="{% static "assets/images/lab-logo.png" %}" alt="ddmal logo" />
</a>
<a href="https://linkedmusic.ca/"
class="my-1 mx-3 pb-3 link-body-emphasis text-decoration-none">
<img src="{% static "assets/images/LM_LogoTransparentBlack1.png" %}"
alt="linkedmusic logo"
style="height: 30px" />
</a>
<a href="https://www.wikidata.org/wiki/Wikidata:Main_Page"
class="my-1 mx-3 link-body-emphasis text-decoration-none">
<img src="{% static "assets/images/Wikidata_logo.png" %}"
alt="wikidata logo"
style="height: 30px" />
</a>
</footer>
</body>
</html>