diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-06-18 05:49:12 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-06-18 05:49:12 -0400 |
commit | 16bec4c643d86f3cf1b04f4f16eb295d291f560f (patch) | |
tree | 6ad7e2611967a69bd776aae2abd8095586a5b687 /templates | |
parent | 65905fda08082df9d4cca0be28f7ae9c1672eaf5 (diff) |
templates/weather.tmpl: add alerts section
Initial version.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/weather.tmpl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/weather.tmpl b/templates/weather.tmpl index 19e7462..e696e41 100644 --- a/templates/weather.tmpl +++ b/templates/weather.tmpl @@ -62,6 +62,35 @@ {{ end }} + {{ if .Alerts }} + <div class="alerts-container"> + {{ range .Alerts }} + <div class="alert-container"> + <div class="alert-header"> + <div class="event-name"> + <span>{{ .Event }}</span> + </div> + </div> + <div class="alert-body"> + <div class="severity"> + <p>Severity — {{ .Severity }}</p> + </div> + <div class="description"> + {{ range $p := .Description }} + <p>{{ $p }}</p> + {{ end }} + </div> + <div class="instruction"> + {{ range $p := .Instruction }} + <p>{{ $p }}</p> + {{ end }} + </div> + </div> + </div> + {{ end }} + </div> + {{ end }} + {{ if .BiDailyTimeline }} <div class="bd-timeline-container"> <div class="periods-container"> |