{{define "layout"}} {{block "title" .}}{{ tr "Volumen admin" }}{{end}} {{/* The translation and toast helpers run before any page script: the page init blocks sit inline inside the content and call window.__, __n and the toast at parse time, so this block must be the first thing the body executes. The blocks that walk the DOM (scheme, rail, confirm, the date picker) stay at the end, where the tree they query already exists. */}} {{if or .IsLogin .IsSetup}}
{{template "scheme-toggle" .}}
{{block "login_content" .}}{{end}}
{{else}}
{{if .IsAuthenticated}} {{end}} Volumen {{ tr "administration" }}
{{template "scheme-toggle" .}} {{if .IsAuthenticated}}
{{if .UserPhoto}} {{else}} {{ .UserInitial }} {{end}} {{ .DisplayName }} {{ tr .CurrentRole }} {{end}}
{{if and .IsAuthenticated .UpdateAvailable}}
Volumen {{ .UpdateAvailable }} {{ tr "is available; you are running" }} {{ .Version }}.
{{ tr "Details" }}
{{end}} {{if gt (len .Crumbs) 1}} {{end}} {{block "content" .}}{{end}}
{{end}} {{template "confirm-dialog" .}}
{{end}} {{define "scheme-toggle"}} {{end}} {{define "confirm-dialog"}}

{{ tr "Are you sure?" }}

{{end}}