46 lines
1.6 KiB
Go Template
46 lines
1.6 KiB
Go Template
{{ define "menu" }}
|
|
<div id="menu">
|
|
<div class="entry {{ if eq .MENU "index" }}selected{{ end }}">
|
|
<a href="/">
|
|
<img src="/images/{{ .VERSION }}/{{ .CONFIG.THEME }}/logo{{ if eq .MENU "index" }}_selected{{ end }}.svg">
|
|
<div class="label">Start</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="entry {{ if eq .MENU "problems" }}selected{{ end }}">
|
|
<a href="/problems">
|
|
<img src="/images/{{ .VERSION }}/{{ .CONFIG.THEME }}/problems{{ if eq .MENU "problems" }}_selected{{ end }}.svg">
|
|
<div class="label">Problems</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="entry {{ if eq .MENU "datapoints" }}selected{{ end }}">
|
|
<a href="/datapoints">
|
|
<img src="/images/{{ .VERSION }}/{{ .CONFIG.THEME }}/datapoints{{ if eq .MENU "datapoints" }}_selected{{ end }}.svg">
|
|
<div class="label">Datapoints</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="entry {{ if eq .MENU "triggers" }}selected{{ end }}">
|
|
<a href="/triggers">
|
|
<img src="/images/{{ .VERSION }}/{{ .CONFIG.THEME }}/triggers{{ if eq .MENU "triggers" }}_selected{{ end }}.svg">
|
|
<div class="label">Triggers</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="entry {{ if eq .MENU "notifications" }}selected{{ end }}">
|
|
<a href="/notifications">
|
|
<img src="/images/{{ .VERSION }}/{{ .CONFIG.THEME }}/notifications{{ if eq .MENU "notifications" }}_selected{{ end }}.svg" style="width: 36px">
|
|
<div class="label">Notifications</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="entry {{ if eq .MENU "configuration" }}selected{{ end }}">
|
|
<a href="/configuration">
|
|
<img src="/images/{{ .VERSION }}/{{ .CONFIG.THEME }}/configuration{{ if eq .MENU "configuration" }}_selected{{ end }}.svg">
|
|
<div class="label">Config</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
{{ end }}
|