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

7 lines
419 B
Cheetah
Raw Permalink Normal View History

{{define "sidebar"}}
2026-11-28 12:23:20 +01:00
{{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}}
2026-11-28 12:23:20 +01:00
</div>{{end}}
{{end}}