smon/views/components/menu.gotmpl

39 lines
1.2 KiB
Go Template
Raw Permalink Normal View History

2024-04-29 08:36:13 +02:00
{{ define "menu" }}
<div id="menu">
2024-05-22 07:49:50 +02:00
<div class="entry {{ if eq .MENU "index" }}selected{{ end }}">
<a href="/">
<img src="/images/{{ .VERSION }}/logo{{ if eq .MENU "index" }}_selected{{ end }}.svg">
<div class="label">Start</div>
</a>
</div>
2024-05-22 07:32:53 +02:00
2024-05-22 07:49:50 +02:00
<div class="entry {{ if eq .MENU "problems" }}selected{{ end }}">
<a href="/problems">
<img src="/images/{{ .VERSION }}/problems{{ if eq .MENU "problems" }}_selected{{ end }}.svg">
<div class="label">Problems</div>
</a>
</div>
2024-05-22 07:32:53 +02:00
2024-05-22 07:49:50 +02:00
<div class="entry {{ if eq .MENU "datapoints" }}selected{{ end }}">
<a href="/datapoints">
<img src="/images/{{ .VERSION }}/datapoints{{ if eq .MENU "datapoints" }}_selected{{ end }}.svg">
<div class="label">Datapoints</div>
</a>
</div>
2024-05-22 07:32:53 +02:00
2024-05-22 07:49:50 +02:00
<div class="entry {{ if eq .MENU "triggers" }}selected{{ end }}">
<a href="/triggers">
<img src="/images/{{ .VERSION }}/triggers{{ if eq .MENU "triggers" }}_selected{{ end }}.svg">
<div class="label">Triggers</div>
</a>
</div>
2024-05-22 07:32:53 +02:00
2024-05-22 07:49:50 +02:00
<div class="entry {{ if eq .MENU "configuration" }}selected{{ end }}">
<a href="/configuration">
<img src="/images/{{ .VERSION }}/configuration{{ if eq .MENU "configuration" }}_selected{{ end }}.svg">
<div class="label">Config</div>
</a>
</div>
2024-04-29 08:36:13 +02:00
</div>
{{ end }}