diff --git a/src/patterns/04-components/card/card-elements/_date.twig b/src/patterns/04-components/card/card-elements/_date.twig index 249478b4ca615114ca7a86b4d3bbd03460a8a38f..9ae8a30ece39b89ef3e9d7a620ceb2993346d49c 100644 --- a/src/patterns/04-components/card/card-elements/_date.twig +++ b/src/patterns/04-components/card/card-elements/_date.twig @@ -5,15 +5,18 @@ <details class="uw-date-details"> <summary role="button" aria-controls="edit-future-dates-collapsible" aria-expanded="false" aria-pressed="false" class="uw-date-details__summary"> {% endif %} + {% if modifier_classes != 'node--opportunity' %} - <span class="uw-date"> + <span class="uw-date"> {% endif %} + {% if d.all_day %} {% if d.start_date %} {% set ddate = d.start_date %} {% else %} {% set ddate = d.date %} {% endif %} + {% include '@components/date/_date.twig' with { 'date_format': 'long', 'date': ddate, @@ -30,6 +33,7 @@ 'date': d.end_date, } %} {% else %} + {% include '@components/date/_date.twig' with { 'date_format': 'long_with_time', 'date': d.end_date, @@ -49,7 +53,7 @@ {% endif %} {% if date|length > 1 and loop.index0 == 0 %} - </summary> + </summary> {% endif %} {% if date|length > 1 and loop.last %}