Skip to content

Commit

Permalink
Merge pull request #413 from yalesites-org/develop
Browse files Browse the repository at this point in the history
Hotfix Release
  • Loading branch information
dblanken-yale authored Sep 5, 2024
2 parents 8b9689b + 7c5bd0f commit 1c112e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
6 changes: 6 additions & 0 deletions components/02-molecules/meta/event-meta/event-localist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,20 @@ event_dates:
formatted_end_date: Friday, May 3rd, 2024
formatted_start_time: 8:30 am EDT
formatted_end_time: 9:30 am EDT
original_start: 1714739400
original_end: 1714743000
- formatted_start_date: Saturday, May 4th, 2024
formatted_end_date: Saturday, May 4th, 2024
formatted_start_time: 8:30 am EDT
formatted_end_time: 9:30 am EDT
original_start: 1714825800
original_end: 1714829400
- formatted_start_date: Sunday, May 5th, 2024
formatted_end_date: Sunday, May 5th, 2024
formatted_start_time: 8:30 am EDT
formatted_end_time: 9:30 am EDT
original_start: 1714912200
original_end: 1714915800
ticket_cost: $40 pre registration, $60 at the door
ticket_url: https://www.yale.edu
event_meta__cta_primary__content: Event Name Website
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,18 +137,14 @@
{% if event_dates %}
<div {{ bem('date', [], event_meta__base_class) }}>
{% if event_dates.0.formatted_start_date == event_dates.0.formatted_end_date %}
{{event_dates.0.formatted_start_date| date('D M j, Y')}}
{{ event_dates.0.formatted_start_time| date('g:ia') }}
{{ event_dates.0.original_start|date('D M j, Y g:ia') }}
-
{{ event_dates.0.formatted_end_time| date('g:ia') }}
{{ event_dates.0.original_end|date('g:ia') }}
{% else %}
{{ event_dates.0.formatted_start_date }}
{{ event_dates.0.formatted_start_time }}
{{ event_dates.0.original_start|date('D M j, Y g:ia') }}
-
{{ event_dates.0.formatted_end_date }}
{{ event_dates.0.formatted_end_time }}
{{ event_dates.0.original_end|date('D M j, Y g:ia') }}
{% endif %}

</div>
{% endif %}
{% endblock %}
Expand Down Expand Up @@ -181,16 +177,13 @@
{% for event_date in event_dates %}
<li {{ bem('multiple-dates__date', [], event_meta__base_class) }}>
{% if event_date.formatted_start_date == event_date.formatted_end_date %}
{{event_date.formatted_start_date| date('D M j, Y')}}
{{ event_date.formatted_start_time| date('g:ia') }}
{{ event_date.original_start|date('D M j, Y g:ia') }}
-
{{ event_date.formatted_end_time| date('g:ia') }}
{{ event_date.original_end|date('g:ia') }}
{% else %}
{{ event_date.formatted_start_date }}
{{ event_date.formatted_start_time }}
{{ event_date.original_start|date('D M j, Y g:ia') }}
-
{{ event_date.formatted_end_date }}
{{ event_date.formatted_end_time }}
{{ event_date.original_end|date('D M j, Y g:ia') }}
{% endif %}
</li>

Expand Down

0 comments on commit 1c112e4

Please sign in to comment.