From 16bec4c643d86f3cf1b04f4f16eb295d291f560f Mon Sep 17 00:00:00 2001 From: siddharth ravikumar Date: Sat, 18 Jun 2022 05:49:12 -0400 Subject: templates/weather.tmpl: add alerts section Initial version. --- templates/weather.tmpl | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'templates') 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 }} +
+ {{ range .Alerts }} +
+
+
+ {{ .Event }} +
+
+
+
+

Severity — {{ .Severity }}

+
+
+ {{ range $p := .Description }} +

{{ $p }}

+ {{ end }} +
+
+ {{ range $p := .Instruction }} +

{{ $p }}

+ {{ end }} +
+
+
+ {{ end }} +
+ {{ end }} + {{ if .BiDailyTimeline }}
-- cgit v1.2.3