smon/views/components/menu.gotmpl

19 lines
1.2 KiB
Go Template
Raw Permalink Normal View History

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