cc-backend/web/templates/config.tmpl

15 lines
413 B
Cheetah
Raw Permalink Normal View History

2022-03-03 14:56:21 +01:00
{{define "content"}}
<div id="svelte-app"></div>
2022-03-03 14:56:21 +01:00
{{end}}
{{define "stylesheets"}}
<link rel='stylesheet' href='/build/config.css'>
{{end}}
{{define "javascript"}}
<script>
const isAdmin = {{ .User.HasRole .Roles.admin }};
const filterPresets = {{ .FilterPresets }};
const clusterCockpitConfig = {{ .Config }};
</script>
<script src='/build/config.js'></script>
2022-03-03 14:56:21 +01:00
{{end}}