mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 08:57:25 +01:00
Fix header
This commit is contained in:
parent
dd5d5214d7
commit
b685462cb2
2
frontend
2
frontend
@ -1 +1 @@
|
||||
Subproject commit 0ade283c31060bbc5b70a36ffc1e7f865740e1d0
|
||||
Subproject commit 63c44bf55bc1c50a437cc7961918129ca0406988
|
@ -16,13 +16,15 @@
|
||||
<script>
|
||||
const header = {
|
||||
"username": "{{ .User.Username }}",
|
||||
"isAdmin": "{{ .User.IsAdmin }}",
|
||||
"isAdmin": {{ .User.IsAdmin }},
|
||||
"clusters": {{ .Clusters }},
|
||||
};
|
||||
</script>
|
||||
</head>
|
||||
<body class="site">
|
||||
<header id="svelte-header"></header>
|
||||
{{block "navigation" .}}
|
||||
<header id="svelte-header"></header>
|
||||
{{end}}
|
||||
|
||||
<main class="site-content">
|
||||
<div class="container">
|
||||
|
@ -7,7 +7,6 @@
|
||||
{{end}}
|
||||
{{define "javascript"}}
|
||||
<script>
|
||||
header.currentView = 'analysis';
|
||||
const cluster = {{ .Infos.cluster }};
|
||||
const filterPresets = {{ .FilterPresets }};
|
||||
const clusterCockpitConfig = {{ .Config }};
|
||||
|
@ -7,7 +7,6 @@
|
||||
{{end}}
|
||||
{{define "javascript"}}
|
||||
<script>
|
||||
header.currentView = 'job';
|
||||
const jobInfos = {
|
||||
id: "{{ .Infos.id }}",
|
||||
jobId: "{{ .Infos.jobId }}",
|
||||
|
@ -8,7 +8,6 @@
|
||||
|
||||
{{define "javascript"}}
|
||||
<script>
|
||||
header.currentView = 'jobs';
|
||||
const filterPresets = {{ .FilterPresets }};
|
||||
const clusterCockpitConfig = {{ .Config }};
|
||||
</script>
|
||||
|
@ -7,7 +7,6 @@
|
||||
{{end}}
|
||||
{{define "javascript"}}
|
||||
<script>
|
||||
header.currentView = {{ .Infos.listType }}.toLowerCase() + 's';
|
||||
const listType = {{ .Infos.listType }};
|
||||
const filterPresets = {{ .FilterPresets }};
|
||||
const clusterCockpitConfig = {{ .Config }};
|
||||
|
@ -7,7 +7,6 @@
|
||||
{{end}}
|
||||
{{define "javascript"}}
|
||||
<script>
|
||||
header.currentView = 'node';
|
||||
const infos = {{ .Infos }};
|
||||
const clusterCockpitConfig = {{ .Config }};
|
||||
</script>
|
||||
|
@ -7,7 +7,6 @@
|
||||
{{end}}
|
||||
{{define "javascript"}}
|
||||
<script>
|
||||
header.currentView = 'system';
|
||||
const infos = {{ .Infos }};
|
||||
const clusterCockpitConfig = {{ .Config }};
|
||||
</script>
|
||||
|
@ -1,9 +1,3 @@
|
||||
{{define "javascript"}}
|
||||
<script>
|
||||
header.currentView = 'tags';
|
||||
</script>
|
||||
<script src='/build/header.js'></script>
|
||||
{{end}}
|
||||
{{define "content"}}
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
|
@ -7,7 +7,6 @@
|
||||
{{end}}
|
||||
{{define "javascript"}}
|
||||
<script>
|
||||
header.currentView = 'user';
|
||||
const userInfos = {{ .Infos }};
|
||||
const filterPresets = {{ .FilterPresets }};
|
||||
const clusterCockpitConfig = {{ .Config }};
|
||||
|
Loading…
Reference in New Issue
Block a user