Added static resources

This commit is contained in:
Magnus Åhall 2024-06-29 15:21:52 +02:00
parent ca9a6c3e1d
commit e728a302ee
8 changed files with 287 additions and 0 deletions

View file

@ -0,0 +1,21 @@
{{ define "page" }}
{{ block "page_label" . }}{{end}}
{{ $version := .VERSION }}
{{ $theme := .CONFIG.THEME }}
<link rel="stylesheet" type="text/css" href="/css/{{ .VERSION }}/{{ .CONFIG.THEME }}/notifications.css">
<div id="notifications">
<div class="header">Sent</div>
<div class="header">OK</div>
<div class="header">Trigger name</div>
<div class="header">Service</div>
{{ range .Data.Notifications }}
<div>{{ format_time .Sent }}</div>
<div>{{ if .OK }}{{ else }}{{ end }}</div>
<div>{{ .TriggerName }}</div>
<div>{{ .Prio }}:{{ .Service }}</div>
{{ end }}
</div>
{{ end }}