Files
yetano-webui-template/templates/layout/navbar.html.tmpl
T

17 lines
660 B
Cheetah
Raw Permalink Normal View History

{{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">
{{.NavbarBeforeBrand}}
<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}}
{{if .LogoutPath}}<a href="{{.BasePath}}{{.LogoutPath}}" class="btn btn-outline-secondary btn-sm">Logout</a>{{end}}
{{.NavbarRightExtra}}
</div>
</div>
</nav>
{{end}}