2026-08-29 00:19:06 +02:00
|
|
|
{{define "navbar"}}
|
|
|
|
|
<nav class="navbar navbar-dark navbar-expand">
|
|
|
|
|
<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-26 15:27:10 +01:00
|
|
|
{{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}}
|