{{/* Configuration page (/config): overview of the config areas, one card per sub page. RBAC has the staged-update workflow; the other sub pages (authentication, git auth, system, telemetry, logging) hold dynamic entries/settings which take effect immediately on save and override the static openrun.toml values. Ends with the config history with restore. HTMX partial: block config_content */}} {{ template "head" . }}
{{ template "drawer_toggle" }}
{{ block "config_content" . }} {{ template "page_progress" }} {{ if .Data.Error }} {{ template "error_alert" .Data.Error }} {{ else }} {{ template "flash_alerts" .Data }}

RBAC

{{ if .Data.RBAC.enabled }} enabled {{ else }} disabled {{ end }} {{ if .Data.RBAC.has_staged }} pending {{ end }} Manage

Role based access control - {{ .Data.RBAC.groups }} groups, {{ .Data.RBAC.roles }} roles, {{ .Data.RBAC.grants }} grants. Changes are staged and go live on publish

{{ range .Data.Pages }}

{{ .title }}

{{ if .has_entries }} {{ .entry_count }} entries {{ end }} {{ if .dynamic_count }} {{ .dynamic_count }} dynamic {{ end }} Manage

{{ .desc }} - changes take effect immediately

{{ end }}

History

{{ len .Data.History }} config versions - restoring creates a new version
{{ if .Data.History }}
{{ range $i, $h := .Data.History }} {{ end }}
Version By When Actions
{{ trunc 16 $h.version_id }}… {{ if eq $h.version_id $.Data.VersionId }} live {{ end }} {{ if $h.user_id }} {{ $h.user_id }} {{ else }} - {{ end }} {{ template "time_ago" $h.update_time }} view {{ if ne $h.version_id $.Data.VersionId }} {{ end }}
{{ else }}

No configuration changes recorded yet

{{ end }}
{{ end }} {{ end }}
{{ template "sidebar" . }}