configui/templates/components/menu.tmpl

31 lines
738 B
Cheetah

{{define "components/menu"}}
<section class="is-large">
<aside class="menu">
<p class="menu-label">
Files
</p>
<ul class="menu-list">
{{ range .Files }}
<li>
<a class="has-tooltip-arrow {{if eq $.File.Name .Name }}is-active{{end}}"
data-tooltip="{{.Path}}"
href="/?name={{.Name}}"
>{{ .Name }}</a>
</li>
{{ end }}
</ul>
{{if not .HideConfig}}
<p class="menu-label">
System
</p>
<ul class="menu-list">
<li>
<a class="has-tooltip-arrow {{if eq .File.Name .AppName }}is-active{{end}}"
data-tooltip="{{$.File.Path}}"
href="/"
>Config</a></li>
</ul>
{{end}}
</aside>
</section>
{{end}}