From 98c4e5a612e671320cdc2f0405a626ebfbca9044 Mon Sep 17 00:00:00 2001 From: Erick Otenyo Date: Thu, 4 Apr 2024 13:39:40 +0300 Subject: [PATCH] Show weather widget only when there is forecast data --- .../home/forecast_widget_include.html | 265 +++++++++--------- 1 file changed, 133 insertions(+), 132 deletions(-) diff --git a/pages/home/templates/home/forecast_widget_include.html b/pages/home/templates/home/forecast_widget_include.html index b9ff794c..8dc65686 100644 --- a/pages/home/templates/home/forecast_widget_include.html +++ b/pages/home/templates/home/forecast_widget_include.html @@ -1,154 +1,155 @@ {% load i18n wagtailiconchooser_tags %} -
-
- {% with default_city_forecasts|first as earliest %} - {% if city_detail_page_url %} -