configui/templates/components/menu.tmpl

29 lines
713 B
Cheetah
Raw Normal View History

2021-10-19 09:28:38 +00:00
{{define "components/menu"}}
<section class="is-large">
<aside class="menu">
<p class="menu-label">
Files
</p>
<ul class="menu-list">
{{ range .Files }}
2021-10-19 18:32:37 +00:00
<li>
2021-10-20 10:20:14 +00:00
<a class="has-tooltip-arrow {{if eq $.File.Alias .Alias }}is-active{{end}}"
data-tooltip="{{.Path}}"
href="/?name={{.Alias}}"
>{{ .Alias }}</a>
2021-10-19 18:32:37 +00:00
</li>
2021-10-19 09:28:38 +00:00
{{ end }}
</ul>
<p class="menu-label">
ConfigUI
</p>
<ul class="menu-list">
2021-10-19 18:32:37 +00:00
<li>
2021-10-20 10:20:14 +00:00
<a class="has-tooltip-arrow {{if eq .File.Alias "ConfigUI" }}is-active{{end}}"
data-tooltip="{{$.File.Path}}"
2021-10-19 18:32:37 +00:00
href="/"
>config.json</a></li>
2021-10-19 09:28:38 +00:00
</ul>
</aside>
</section>
{{end}}