mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-09-18 22:34:32 +02:00
.github
api
cmd
configs
init
internal
pkg
tools
web
frontend
templates
monitoring
404.tmpl
base.tmpl
config.tmpl
home.tmpl
imprint.tmpl
login.tmpl
message.tmpl
privacy.tmpl
web.go
.gitignore
.goreleaser.yaml
LICENSE
Makefile
README.md
ReleaseNotes.md
go.mod
go.sum
gqlgen.yml
startDemo.sh
tools.go
20 lines
674 B
Cheetah
20 lines
674 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 isSupport = {{ .User.HasRole .Roles.support }};
|
|
const isApi = {{ .User.HasRole .Roles.api }};
|
|
const username = {{ .User.Username }};
|
|
const filterPresets = {{ .FilterPresets }};
|
|
const clusterCockpitConfig = {{ .Config }};
|
|
const resampleConfig = {{ .Resampling }};
|
|
const ncontent = {{ .Infos.ncontent }};
|
|
</script>
|
|
<script src='/build/config.js'></script>
|
|
{{end}} |