-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
46 lines (45 loc) · 1.58 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<!-- custom script head -->
{% include 'custom_view/custom_script_head.html' %}
<meta charset="utf-8" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap"
/>
<link rel="shortcut icon" href="/static/favicon.ico" />
<title>{{ airone.TITLE }}</title>
</head>
<body style="margin: 0px; overflow-y: scroll">
<!-- custom script body -->
{% include 'custom_view/custom_script_body.html' %}
<div
id="app"
class="columns"
style="min-height: 100vh; display: flex; flex-direction: column"
>
<!-- React -->
</div>
<script type="text/javascript">
window.django_context = {
version: "{{airone.VERSION}}",
title: "{{ airone.TITLE }}",
user: {
id: {{user.id}},
username: "{{user.username}}",
isSuperuser: {{user.is_superuser|yesno:"true,false"}},
},
legacyUiDisabled: {{airone.LEGACY_UI_DISABLED|yesno:"true,false"}},
checkTermService: {{airone.CHECK_TERM_SERVICE|yesno:"true,false"}},
extendedGeneralParameters: {{ airone.EXTENDED_GENERAL_PARAMETERS|safe }},
extendedHeaderMenus: {{ airone.EXTENDED_HEADER_MENUS|safe }},
headerColor: {% if airone.HEADER_COLOR %}"{{ airone.HEADER_COLOR|safe }}"{% else %}null{% endif %},
flags: {
webhook: {{ airone_flags.WEBHOOK|yesno:"true,false" }},
},
};
</script>
<script src="/static/js/ui.js"></script>
</body>
</html>