From dcac8aa63c86d55e92e100f85eea56536bb25d7f Mon Sep 17 00:00:00 2001 From: Steve Binkowski Date: Thu, 11 Jul 2024 13:03:07 -0400 Subject: [PATCH] Restore notice for vacant senate seat --- .../custom/nys_registration/assets/find_my_senator.css | 7 +++++++ ...axonomy-term--districts--matched-district.html.twig | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/web/modules/custom/nys_registration/assets/find_my_senator.css b/web/modules/custom/nys_registration/assets/find_my_senator.css index b906272e4..2b23a1898 100644 --- a/web/modules/custom/nys_registration/assets/find_my_senator.css +++ b/web/modules/custom/nys_registration/assets/find_my_senator.css @@ -41,3 +41,10 @@ content: ','; display: inline-block; } + +.c-find-my-senator .nys-vacant-seat { + font-size: 20px; + font-family: Adelle Light, serif; + color: #666666; + padding-top: 4px; +} diff --git a/web/themes/custom/nysenate_theme/src/templates/taxonomy-term/taxonomy-term--districts--matched-district.html.twig b/web/themes/custom/nysenate_theme/src/templates/taxonomy-term/taxonomy-term--districts--matched-district.html.twig index 4bc0ae0e7..21bea075c 100644 --- a/web/themes/custom/nysenate_theme/src/templates/taxonomy-term/taxonomy-term--districts--matched-district.html.twig +++ b/web/themes/custom/nysenate_theme/src/templates/taxonomy-term/taxonomy-term--districts--matched-district.html.twig @@ -27,6 +27,12 @@ {{ attach_library('nysenate_theme/district') }}
-

Your Senator

-
{{ content.field_senator }}
+

Your Senator

+ {% if content.field_senator.0 is defined %} +
+ {{ content.field_senator }} +
+ {% else %} +
This Senate seat is currently vacant.
+ {% endif %}