Skip to content

Commit

Permalink
Merge pull request #1383 from openeuropa/EWPP-3874
Browse files Browse the repository at this point in the history
EWPP-3874: Update Event CT.
  • Loading branch information
22Alexandra authored Jan 31, 2024
2 parents e8df798 + a83599d commit 8d631e6
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<div id="event-contacts-general">
<h3 class="ecl-u-type-heading-3 ecl-u-mt-none ecl-u-mb-m ecl-u-mb-m-l">{{ 'General contact'|t }}</h3>
{% for contact in general %}
<div{{ not loop.last ? ' class="ecl-u-mb-xl ecl-u-pb-xl ecl-u-border-bottom ecl-u-border-color-grey-20"'}}>
<div{% if not loop.last %}
class="ecl-u-mb-xl ecl-u-pb-xl ecl-u-border-bottom {{ ecl_class_border_color() }}"
{% endif %}>
{{ contact }}
</div>
{% endfor %}
Expand All @@ -23,7 +25,9 @@
<div id="event-contacts-press">
<h3 class="ecl-u-type-heading-3 ecl-u-mt-none ecl-u-mb-m ecl-u-mb-m-l">{{ 'Press contact'|t }}</h3>
{% for contact in press %}
<div{{ not loop.last ? ' class="ecl-u-mb-xl ecl-u-pb-xl ecl-u-border-bottom ecl-u-border-color-grey-20"'}}>
<div{% if not loop.last %}
class="ecl-u-mb-xl ecl-u-pb-xl ecl-u-border-bottom {{ ecl_class_border_color() }}"
{% endif %}>
{{ contact }}
</div>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
{% endif %}
{% endif %}
{% if registration_day %}
<p class="ecl-u-type-paragraph ecl-u-type-color-grey-75{% if enabled %} ecl-u-d-none{% endif %}" data-registration-upcoming-element="true">{{ registration_day_description }}</p>
<p class="ecl-u-type-paragraph ecl-u-type-color-grey-75{% if not enabled %} ecl-u-d-none{% endif %}" data-registration-active-element="true">{{ description }}</p>
<p class="ecl-u-type-paragraph ecl-u-type-color-dark-100{% if enabled %} ecl-u-d-none{% endif %}" data-registration-upcoming-element="true">{{ registration_day_description }}</p>
<p class="ecl-u-type-paragraph ecl-u-type-color-dark-100{% if not enabled %} ecl-u-d-none{% endif %}" data-registration-active-element="true">{{ description }}</p>
{% elseif description %}
<p class="ecl-u-type-paragraph ecl-u-type-color-grey-75">{{ description }}</p>
<p class="ecl-u-type-paragraph ecl-u-type-color-dark-100">{{ description }}</p>
{% endif %}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
#}
{% if title %}
{% include '@ecl-twig/message' with {
{% include '@ecl-twig/notification' with {
'title': title,
'description': description|default(''),
'variant': variant,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
<h2 class="ecl-u-type-heading-2 ecl-u-mt-2xl ecl-u-mt-m-3xl ecl-u-mb-l">{{ label }}</h2>
<div class="ecl-row field-oe-event-speakers">
{% for item in items %}
<article class="ecl-u-d-flex ecl-u-pv-m ecl-u-border-bottom ecl-u-border-color-grey-15 ecl-col-12 ecl-col-m-6 ecl-col-l-4">
<article class="ecl-u-d-flex ecl-u-pv-m ecl-u-border-bottom {{ ecl_class_border_color() }} ecl-col-12 ecl-col-m-6 ecl-col-l-4">
<div role="img" class="ecl-u-flex-shrink-0 ecl-u-mr-s ecl-u-media-a-m ecl-u-media-bg-size-contain ecl-u-media-bg-repeat-none" style="background-image:url({{ item.content.portrait_image.src }})"></div>
<div class="ecl-u-flex-grow-1">
{% if item.event_speaker.oe_event_role.value %}
<div class="ecl-content-item__meta ecl-u-type-s ecl-u-type-color-grey-75 ecl-u-mb-s ecl-u-type-uppercase">{{ item.event_speaker.oe_event_role.value }}</div>
<div class="ecl-content-item__meta ecl-u-type-s ecl-u-type-color-dark-100 ecl-u-mb-s ecl-u-type-uppercase">{{ item.event_speaker.oe_event_role.value }}</div>
{% endif %}
<a href="{{ path('entity.node.canonical', {'node': item.event_speaker.oe_person.entity.id}) }}" class="ecl-link ecl-link--standalone ecl-u-type-bold">{{ item.event_speaker.label() }}</a>
{% if item.content.person_jobs %}
<div class="ecl-u-type-s ecl-u-type-color-grey-100 ecl-u-mt-s">{{ item.content.person_jobs }}</div>
<div class="ecl-u-type-s ecl-u-type-color-dark-100 ecl-u-mt-s">{{ item.content.person_jobs }}</div>
{% endif %}
</div>
</article>
Expand Down
Loading

0 comments on commit 8d631e6

Please sign in to comment.