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-20 15:58:14 +00:00
|
|
|
<li>
|
2021-10-23 04:56:24 +00:00
|
|
|
<a class="has-tooltip-arrow {{if eq $.File.Name .Name }}is-active{{end}}"
|
2021-10-20 15:58:14 +00:00
|
|
|
data-tooltip="{{.Path}}"
|
2021-10-24 07:06:02 +00:00
|
|
|
href="{{$.BaseUrl}}?name={{.Name}}"
|
2021-10-23 04:56:24 +00:00
|
|
|
>{{ .Name }}</a>
|
2021-10-20 15:58:14 +00:00
|
|
|
</li>
|
2021-10-19 09:28:38 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2021-11-12 15:09:32 +00:00
|
|
|
<!-- {{if .Actions}}
|
|
|
|
<p class="menu-label">
|
|
|
|
Actions
|
|
|
|
</p>
|
|
|
|
<ul class="menu-list">
|
|
|
|
{{- range .Actions -}}
|
|
|
|
<li>
|
|
|
|
<a class="button has-tooltip-arrow {{.State|state_class}}" id="actbtn-{{.Name|normal}}"
|
|
|
|
data-tooltip="{{.Cmd}}" onclick="toolDoAction('{{.Name}}')">
|
|
|
|
<span>{{- .Name -}}</span>
|
|
|
|
<span class="icon is-small"><span class="material-icons">
|
|
|
|
{{.State|state_icon}}
|
|
|
|
</span></span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{- end -}}
|
|
|
|
</ul>
|
|
|
|
{{end}} -->
|
2021-10-23 04:56:24 +00:00
|
|
|
{{if not .HideConfig}}
|
2021-10-19 09:28:38 +00:00
|
|
|
<p class="menu-label">
|
2021-10-23 04:56:24 +00:00
|
|
|
System
|
2021-10-19 09:28:38 +00:00
|
|
|
</p>
|
|
|
|
<ul class="menu-list">
|
2021-10-20 15:58:14 +00:00
|
|
|
<li>
|
2021-10-23 04:56:24 +00:00
|
|
|
<a class="has-tooltip-arrow {{if eq .File.Name .AppName }}is-active{{end}}"
|
2021-11-11 02:21:10 +00:00
|
|
|
data-tooltip="Configuration"
|
2021-10-24 07:06:02 +00:00
|
|
|
href="{{.BaseUrl}}"
|
2021-10-23 04:56:24 +00:00
|
|
|
>Config</a></li>
|
2021-10-19 09:28:38 +00:00
|
|
|
</ul>
|
2021-10-23 04:56:24 +00:00
|
|
|
{{end}}
|
2021-10-19 09:28:38 +00:00
|
|
|
</aside>
|
|
|
|
</section>
|
|
|
|
{{end}}
|