{{/* estilo-bar: the whole app header, one row at every width. Data: chrome.Bar. Parse this package's templates together with menu.Templates() and the app's own layout. The skip link and
are the layout's; this is only the
. Order in the end group is fixed in every app: actions, then Menu (narrow only), then the switcher, then the account. The account is always the last thing at the inline end. The brand is a link to the app root, except on public read-only pages, where App.Home is empty and it is plain text. */}} {{define "estilo-bar"}}
{{- if .App.Home}} {{.App.Name}} {{- else}} {{.App.Name}} {{- end}} {{- with .ContextEdit}} {{template "estilo-bar-title" .}} {{- else}}{{with .Context}} {{.}} {{- end}}{{end}} {{- if .Nav}} {{- end}}
{{- if .Actions}}
{{template "estilo-bar-actions" .}}
{{- end}} {{- if or .Nav .Actions}}
{{template "estilo-icon-menu"}}{{.Labels.Menu}}
{{- range .Nav}}{{.Label}}{{end}} {{- if and .Nav .Actions}}
{{end}} {{- range .Actions}}{{template "estilo-menu-item" .Item}}{{end}}
{{- end}} {{- with .Switcher}} {{template "estilo-switcher" .}} {{- end}} {{- if .Account}} {{template "estilo-account" .Account}} {{- else}}{{with .SignIn}} {{.Label}} {{- end}}{{end}}
{{end}} {{/* estilo-bar-actions: the wide-screen actions, from Bar.Actions, each the element its Item names: a link, a one-button POST form, or a button opening a dialog. The same items are rows in the narrow Menu sheet, so both stay one list. An app may redefine this after parsing to change how they are drawn, but the sheet always renders Bar.Actions. */}} {{define "estilo-bar-actions"}}{{range .Actions}}{{template "estilo-bar-action" .}}{{end}}{{end}} {{define "estilo-bar-action"}}{{if .Action}}
{{else if .Dialog}}{{else}}{{.Label}}{{end}}{{end}} {{/* estilo-bar-title: the open object's title, editable in place. A real form, so Enter renames with scripts off. The submit button is visually hidden until the form has focus. Data: chrome.TitleEdit. */}} {{define "estilo-bar-title"}}
{{end}}