Skip to content
Snippets Groups Projects
Commit 5199a37f authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5647: coding standards for card element date

parent 079346a0
No related branches found
No related tags found
1 merge request!14Feature/istwcms 5647 ebremner migrate node
...@@ -5,15 +5,18 @@ ...@@ -5,15 +5,18 @@
<details class="uw-date-details"> <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"> <summary role="button" aria-controls="edit-future-dates-collapsible" aria-expanded="false" aria-pressed="false" class="uw-date-details__summary">
{% endif %} {% endif %}
{% if modifier_classes != 'node--opportunity' %} {% if modifier_classes != 'node--opportunity' %}
<span class="uw-date"> <span class="uw-date">
{% endif %} {% endif %}
{% if d.all_day %} {% if d.all_day %}
{% if d.start_date %} {% if d.start_date %}
{% set ddate = d.start_date %} {% set ddate = d.start_date %}
{% else %} {% else %}
{% set ddate = d.date %} {% set ddate = d.date %}
{% endif %} {% endif %}
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'long', 'date_format': 'long',
'date': ddate, 'date': ddate,
...@@ -30,6 +33,7 @@ ...@@ -30,6 +33,7 @@
'date': d.end_date, 'date': d.end_date,
} %} } %}
{% else %} {% else %}
{% include '@components/date/_date.twig' with { {% include '@components/date/_date.twig' with {
'date_format': 'long_with_time', 'date_format': 'long_with_time',
'date': d.end_date, 'date': d.end_date,
...@@ -49,7 +53,7 @@ ...@@ -49,7 +53,7 @@
{% endif %} {% endif %}
{% if date|length > 1 and loop.index0 == 0 %} {% if date|length > 1 and loop.index0 == 0 %}
</summary> </summary>
{% endif %} {% endif %}
{% if date|length > 1 and loop.last %} {% if date|length > 1 and loop.last %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment