From 81ca093db6b9f6e5f520db9dd58afcd523228ef3 Mon Sep 17 00:00:00 2001 From: partly-igor Date: Thu, 7 Nov 2024 11:56:16 -0500 Subject: [PATCH 1/4] Add in AFD link when there is no weather story --- .../templates/layout/page--point.html.twig | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/web/themes/new_weather_theme/templates/layout/page--point.html.twig b/web/themes/new_weather_theme/templates/layout/page--point.html.twig index effec63ff..5b66d8d08 100644 --- a/web/themes/new_weather_theme/templates/layout/page--point.html.twig +++ b/web/themes/new_weather_theme/templates/layout/page--point.html.twig @@ -80,7 +80,27 @@ + {% if drupal_block("weathergov_weather_story_image", { wfo: point.grid.wfo }).content | length > 0 %} {{ drupal_block("weathergov_weather_story_image", { wfo: point.grid.wfo }) }} + {% else %} +
+
+
+ + Area Forecast Discussion +
+
+
+ {% endif %}
From e43102dfcb28407d0c8eb7aecade1b3136358163 Mon Sep 17 00:00:00 2001 From: partly-igor Date: Thu, 7 Nov 2024 12:29:24 -0500 Subject: [PATCH 2/4] Adjust standalone afd padding to match other elements --- .../new_weather_theme/templates/layout/page--point.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/themes/new_weather_theme/templates/layout/page--point.html.twig b/web/themes/new_weather_theme/templates/layout/page--point.html.twig index 5b66d8d08..31b636f9a 100644 --- a/web/themes/new_weather_theme/templates/layout/page--point.html.twig +++ b/web/themes/new_weather_theme/templates/layout/page--point.html.twig @@ -83,7 +83,7 @@ {% if drupal_block("weathergov_weather_story_image", { wfo: point.grid.wfo }).content | length > 0 %} {{ drupal_block("weathergov_weather_story_image", { wfo: point.grid.wfo }) }} {% else %} -
+
- {% if drupal_block("weathergov_weather_story_image", { wfo: point.grid.wfo }).content | length > 0 %} - {{ drupal_block("weathergov_weather_story_image", { wfo: point.grid.wfo }) }} + {% set weather_story = drupal_block("weathergov_weather_story_image", { wfo: point.grid.wfo }) %} + {% if weather_story.content | length > 0 %} + {{ weather_story }} {% else %}
From dde099bdd839e7d744476049a9b76a4984a80ecf Mon Sep 17 00:00:00 2001 From: partly-igor Date: Thu, 7 Nov 2024 13:08:10 -0500 Subject: [PATCH 4/4] Remove unnecessary padding on desktop --- .../new_weather_theme/templates/layout/page--point.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/themes/new_weather_theme/templates/layout/page--point.html.twig b/web/themes/new_weather_theme/templates/layout/page--point.html.twig index d950abfb6..c5be25777 100644 --- a/web/themes/new_weather_theme/templates/layout/page--point.html.twig +++ b/web/themes/new_weather_theme/templates/layout/page--point.html.twig @@ -85,7 +85,7 @@ {{ weather_story }} {% else %}
-
+