Merge branch 'master' of github.com:ClusterCockpit/cc-backend

This commit is contained in:
Jan Eitzinger
2022-02-03 11:01:09 +01:00
4 changed files with 24 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
<th>Name</th>
<th>Jobs</th>
<th>System View</th>
<!-- <th>Analysis View</th> -->
<th>Analysis View</th>
</tr>
</thead>
<tbody>
@@ -48,7 +48,7 @@
<td>{{.Name}}</td>
<td><a href="/monitoring/jobs/?cluster={{.Name}}">Jobs</a></td>
<td><a href="/monitoring/systems/{{.Name}}">System View</a></td>
<!-- <td><a href="/monitoring/analysis/?cluster={{.Name}}">Analysis View</a></td> -->
<td><a href="/monitoring/analysis/{{.Name}}">Analysis View</a></td>
</tr>
{{end}}
</tbody>

View File

@@ -0,0 +1,15 @@
{{define "content"}}
<div id="svelte-app"></div>
{{end}}
{{define "stylesheets"}}
<link rel='stylesheet' href='/build/analysis.css'>
{{end}}
{{define "javascript"}}
<script>
const cluster = {{ .Infos.cluster }};
const filterPresets = {{ .FilterPresets }};
const clusterCockpitConfig = {{ .Config }};
</script>
<script src='/build/analysis.js'></script>
{{end}}

View File

@@ -33,6 +33,7 @@ func init() {
"monitoring/user.tmpl",
"monitoring/systems.tmpl",
"monitoring/node.tmpl",
"monitoring/analysis.tmpl",
}
for _, file := range files {