diff options
Diffstat (limited to 'templates/weather.tmpl')
-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"> |