2026-08-29 00:19:06 +02:00
|
|
|
{{define "navbar"}}
|
2026-10-29 22:47:04 +01:00
|
|
|
<nav class="navbar navbar-expand">
|
2026-08-29 00:19:06 +02:00
|
|
|
<div class="container-fluid d-flex justify-content-between align-items-center">
|
|
|
|
|
<div class="d-flex align-items-center">
|
2026-08-31 10:21:15 +02:00
|
|
|
{{.NavbarBeforeBrand}}
|
2026-08-29 00:19:06 +02:00
|
|
|
<a class="navbar-brand" href="{{.BasePath}}/">{{.Brand}}</a>
|
|
|
|
|
{{if .Subtitle}}<span class="navbar-subtitle">{{.Subtitle}}</span>{{end}}
|
|
|
|
|
{{.NavbarLeftExtra}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d-flex align-items-center gap-2">
|
|
|
|
|
{{if .Username}}<span class="navbar-subtitle">{{.Username}}</span>{{end}}
|
2026-10-29 22:47:04 +01:00
|
|
|
{{if .AppearancePath}}{{with .AppearanceMenu}}<details class="yw-appearance">
|
|
|
|
|
<summary class="btn btn-outline-secondary btn-sm" title="{{.ThemeHeading}}: {{.Current.Label}}"><span aria-hidden="true">{{.Current.Symbol}}</span> {{.Current.Label}}</summary>
|
|
|
|
|
<form method="post" action="{{$.BasePath}}{{$.AppearancePath}}" class="yw-appearance-menu m-0">
|
|
|
|
|
<input type="hidden" name="back" value="{{$.AppearanceBack}}">
|
|
|
|
|
<h6>{{.ThemeHeading}}</h6>
|
|
|
|
|
{{range .Themes}}<button type="submit" name="theme" value="{{.ID}}" aria-pressed="{{.Current}}"><span aria-hidden="true">{{.Symbol}}</span> {{.Label}}</button>
|
|
|
|
|
{{end}}<hr>
|
|
|
|
|
<h6>{{.PaletteHeading}}</h6>
|
|
|
|
|
{{range .Palettes}}<button type="submit" name="palette" value="{{.ID}}" aria-pressed="{{.Current}}">{{.Label}}</button>
|
|
|
|
|
{{end}}</form>
|
|
|
|
|
</details>
|
|
|
|
|
{{end}}{{end}}{{if .LogoutPath}}<form method="post" action="{{.BasePath}}{{.LogoutPath}}" class="d-inline m-0"><button type="submit" class="btn btn-outline-secondary btn-sm">Logout</button></form>{{end}}
|
2026-08-29 00:19:06 +02:00
|
|
|
{{.NavbarRightExtra}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|
|
|
|
|
{{end}}
|