Initial extraction of shared webui layout (base/navbar/sidebar/footer)
Pilot module for the shared design used by yasta, yasl, yaiam, yakwui, and yamase-web: server-rendered Bootstrap dashboard chrome, imported as a Go module instead of copy-pasted per project.
This commit is contained in:
commit
79f7f972f1
11 files changed
+439
No files matched your search
@@ -0,0 +1,16 @@
|
||||
{{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">
|
||||
<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}}
|
||||
Reference in new issue
Block a user