Files
yetano-webui-template/templates/layout/sidebar.html.tmpl
T
terminarandClaude Opus 5.5 8964cec3e2 Sidebar: no container without NavItems
A page that clears NavItems (yasta's login page) still got the empty
nav container, which the modern style draws as a card: an empty frame
where the sidebar would be. The container is now left out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:23:20 +01:00

8 lines
419 B
Cheetah

{{define "sidebar"}}
{{if .NavItems}}<div class="nav flex-column pt-2">
{{range .SidebarEntries}}{{if .GroupHead}}<div class="yw-nav-group">{{.GroupHead}}</div>
{{end}}<a class="nav-link{{if .Active}} active{{end}}" href="{{$.BasePath}}{{.Href}}"{{if .Active}} aria-current="page"{{end}}>{{if .IconSVG}}<span class="yw-nav-icon" aria-hidden="true">{{.IconSVG}}</span>{{end}}{{.Label}}</a>
{{end}}
</div>{{end}}
{{end}}