mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 08:57:25 +01:00
b2aed2f16b
- Addresses issues #40 #45 #82 - Reworked Navigation Header for all roles - 'Manager' role added, can be assigned a project-id in config by admins - BREAKING! -> Added 'project' column in SQLite3 table 'user' - Manager-Assigned project will be added to all graphql filters: Only show Jobs and Users of given project - 'My Jobs' Tab for all Roles - Switched from Bool "isAdmin" to integer authLevels - Removed critical data frontend logging - Reworked repo.query.SecurityCheck()
18 lines
452 B
Cheetah
18 lines
452 B
Cheetah
{{define "content"}}
|
|
<div id="svelte-app"></div>
|
|
{{end}}
|
|
|
|
{{define "stylesheets"}}
|
|
<link rel='stylesheet' href='/build/jobs.css'>
|
|
{{end}}
|
|
|
|
{{define "javascript"}}
|
|
<script>
|
|
const filterPresets = {{ .FilterPresets }};
|
|
const clusterCockpitConfig = {{ .Config }};
|
|
const project = {{ .User.Project }};
|
|
const isManager = {{ eq .User.AuthLevel 3 }};
|
|
</script>
|
|
<script src='/build/jobs.js'></script>
|
|
{{end}}
|