2024-02-12 13:20:38 +00:00
|
|
|
{{define "main"}}
|
|
|
|
{{ $title := "" }}
|
|
|
|
{{ $path := "" }}
|
2024-02-15 22:47:56 +00:00
|
|
|
{{ if ne nil .SettingsSidebarActive }}
|
|
|
|
{{ $title = .SettingsSidebarActive.Title }}
|
|
|
|
{{ $path = .SettingsSidebarActive.Path }}
|
2024-02-12 13:20:38 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2024-02-15 22:47:56 +00:00
|
|
|
<div class="grid grid-cols-1 lg:grid-cols-[1fr_100%] gap-8">
|
2024-02-12 13:20:38 +00:00
|
|
|
<ul class="sidebar">
|
2024-02-15 22:47:56 +00:00
|
|
|
{{range .SettingsSidebar}}
|
2024-02-12 13:20:38 +00:00
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
{{$active := eq .Path $path }}
|
|
|
|
{{if $active}}aria-current="true"{{end}}
|
|
|
|
href="{{.Path}}"
|
|
|
|
class="{{if $active}}active{{end}}">
|
|
|
|
{{.Title}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
<div>
|
2024-02-15 22:47:56 +00:00
|
|
|
<nav class="breadcrumb" aria-label="Breadcrumb">
|
|
|
|
<ol class="inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse">
|
|
|
|
{{ range .SettingsBreadcrumbs }}
|
|
|
|
<li class="inline-flex items-center">
|
|
|
|
<a href="{{ .Path }}" class="inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600">
|
|
|
|
{{ .Breadcrumb }}
|
|
|
|
<svg aria-hidden="true" class="feather h-4 w-4 mx-1 text-gray-400 overflow-visible"><use href="/static/icons/feather-sprite.svg#chevron-right"/></svg>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ol>
|
|
|
|
</nav>
|
2024-02-12 13:20:38 +00:00
|
|
|
{{template "settings" .}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|