2022-03-03 14:56:21 +01:00
|
|
|
{{define "content"}}
|
2022-09-09 15:27:00 +02:00
|
|
|
<div id="svelte-app"></div>
|
2022-03-03 14:56:21 +01:00
|
|
|
{{end}}
|
|
|
|
|
2022-09-09 15:27:00 +02:00
|
|
|
{{define "stylesheets"}}
|
|
|
|
<link rel='stylesheet' href='/build/config.css'>
|
|
|
|
{{end}}
|
|
|
|
{{define "javascript"}}
|
|
|
|
<script>
|
2023-03-06 11:44:38 +01:00
|
|
|
const isAdmin = {{ .User.HasRole .Roles.admin }};
|
2024-07-04 17:30:16 +02:00
|
|
|
const isApi = {{ .User.HasRole .Roles.api }};
|
|
|
|
const username = {{ .User.Username }};
|
2022-09-09 15:27:00 +02:00
|
|
|
const filterPresets = {{ .FilterPresets }};
|
|
|
|
const clusterCockpitConfig = {{ .Config }};
|
|
|
|
</script>
|
|
|
|
<script src='/build/config.js'></script>
|
2022-03-03 14:56:21 +01:00
|
|
|
{{end}}
|