mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 12:59:06 +01:00
18 lines
564 B
Cheetah
18 lines
564 B
Cheetah
{{define "content"}}
|
|
<div id="svelte-app"></div>
|
|
{{end}}
|
|
|
|
{{define "stylesheets"}}
|
|
<link rel='stylesheet' href='/build/config.css'>
|
|
{{end}}
|
|
{{define "javascript"}}
|
|
<script>
|
|
const isAdmin = {{ .User.HasRole .Roles.admin }};
|
|
const isApi = {{ .User.HasRole .Roles.api }};
|
|
const username = {{ .User.Username }};
|
|
const filterPresets = {{ .FilterPresets }};
|
|
const clusterCockpitConfig = {{ .Config }};
|
|
const resampleConfig = {{ .Resampling }};
|
|
</script>
|
|
<script src='/build/config.js'></script>
|
|
{{end}} |