configui/templates/components/menu.tmpl

31 lines
738 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 }}
<li>
2021-10-21 13:49:15 +00:00
<a class="has-tooltip-arrow {{if eq $.File.Name .Name }}is-active{{end}}"
data-tooltip="{{.Path}}"
2021-10-21 13:49:15 +00:00
href="/?name={{.Name}}"
>{{ .Name }}</a>
</li>
2021-10-19 09:28:38 +00:00
{{ end }}
</ul>
2021-10-23 04:55:05 +00:00
{{if not .HideConfig}}
2021-10-19 09:28:38 +00:00
<p class="menu-label">
2021-10-22 05:20:59 +00:00
System
2021-10-19 09:28:38 +00:00
</p>
<ul class="menu-list">
<li>
2021-10-21 13:49:15 +00:00
<a class="has-tooltip-arrow {{if eq .File.Name .AppName }}is-active{{end}}"
data-tooltip="{{$.File.Path}}"
href="/"
2021-10-22 05:20:59 +00:00
>Config</a></li>
2021-10-19 09:28:38 +00:00
</ul>
2021-10-23 04:55:05 +00:00
{{end}}
2021-10-19 09:28:38 +00:00
</aside>
</section>
{{end}}