-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
53 lines (50 loc) · 2.32 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
47
48
49
50
51
52
53
<!doctype html>
<html lang="en" xmlns:tal="http://xml.zope.org/namespaces/tal">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<link rel="manifest" href="/ui/manifest.json">
<link tal:condition="theme|nothing" rel="stylesheet" tal:attributes="href string:/static/ui/${theme}-theme.css">
<base tal:attributes="href string:/ui/${build_path}" tal:condition="build_path"></base>
<base tal:attributes="href string:/ui-dev/" tal:condition="not: build_path"></base>
<title tal:content="portal_name|nothing">Mist :: multi cloud management platform</title>
<link tal:condition="theme|nothing" rel="shortcut icon" sizes="32x32" tal:attributes="href string:/static/${theme}-favicon.ico">
<link tal:condition="not theme" rel="shortcut icon" sizes="32x32" tal:attributes="href string:assets/app-icon-32.png">
<meta name="theme-color" content="#fff">
<script>
window.rbac = {
properties: {},
checkPerm() {
console.log('dummy check perm');
return true;
},
};
</script>
<script tal:condition="features['rbac']" tal:content="structure ugly_rbac"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async tal:condition="google_analytics_id" src="https://www.googletagmanager.com/gtag/js?id=${google_analytics_id}"></script>
<script type="module">
const dataLayer = window.dataLayer || [];
function gtag(...args) { dataLayer.push(args); }
gtag('js', new Date());
gtag('config', '${google_analytics_id}', { // eslint-disable-line
'custom_map': { 'app': 'ui' }
});
gtag('set', { 'content_group1': 'ui' });
</script>
<script tal:content="string: const True = true, False = false, CONFIG = {'portal_name': '${portal_name}', 'features': ${structure:features}, 'email': ${email}, 'cta': ${cta}, 'theme': '${theme}'};">
const CONFIG = false; // eslint-disable-line no-unused-vars
</script>
</head>
<body>
<mist-app unresolved>
</mist-app>
<script type="module">
/* eslint-disable no-undef */
import './src/mist-app.js';
if (CONFIG) {
document.querySelector('mist-app').config = CONFIG;
}
</script>
</body>
</html>