Implemented weather stories support
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
This commit is contained in:
21
templates/weatherstories_latest.txt.tmpl
Normal file
21
templates/weatherstories_latest.txt.tmpl
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- if .Data -}}
|
||||
Latest Weather Story
|
||||
Office ID: {{if .Data.OfficeID}}{{.Data.OfficeID}}{{else}}n/a{{end}}
|
||||
Title: {{if .Data.Title}}{{.Data.Title}}{{else}}Untitled{{end}}
|
||||
Start: {{.Data.StartTime}}
|
||||
End: {{.Data.EndTime}}
|
||||
Updated: {{.Data.UpdatedAt}}
|
||||
Priority: {{.Data.Priority}}
|
||||
Order: {{.Data.Order}}
|
||||
{{- if .Data.Description}}
|
||||
Description: {{.Data.Description}}
|
||||
{{- end}}
|
||||
{{- if .Data.AltText}}
|
||||
Alt Text: {{.Data.AltText}}
|
||||
{{- end}}
|
||||
{{- if .Data.DownloadURL}}
|
||||
Download URL: {{.Data.DownloadURL}}
|
||||
{{- end}}
|
||||
{{- else -}}
|
||||
No weather stories data available.
|
||||
{{- end}}
|
||||
Reference in New Issue
Block a user