Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 3dca9f33 authored by escuriola's avatar escuriola Committed by drishu
Browse files

OEL-1552: Theming person for full view.

parent 3693a7b0
No related branches found
No related tags found
1 merge request!162OEL-1552: Theme the person content type
......@@ -4,11 +4,17 @@
* Person full display.
*/
#}
Qué tal
<article{{attributes}}>
<div class="row">
<div class="col-12 col-lg-10 col-xl-9 col-xxl-8 mb-4">
{{ content.body }}
<div class="col-12 col-lg-10 col-xl-9 col-xxl-8">
<h2 class="mb-4">{{ 'Additional information'|t }}</h2>
<div class="mb-4-5">
{{ content.oe_sc_person_additional_info|field_value }}
</div>
<h2 class="mb-4">{{ 'Related documents'|t }}</h2>
<div class="mb-4-5">
{{ content.oe_sc_person_documents|field_value }}
</div>
</div>
</div>
</article>
......@@ -12,13 +12,32 @@
{% if not node.oe_sc_person_occupation.isEmpty() %}
{% set _meta = _meta|merge([content.oe_sc_person_occupation|field_value]) %}
{% endif %}
<div{{attributes}}>
{% if not node.oe_sc_person_country.isEmpty() %}
{% set _meta = _meta|merge([content.oe_sc_person_country|field_value]) %}
{% endif %}
{% set _content %}
{{ content.oe_summary|field_value }}
<div class="mt-2-5 mb-2">
{% for _link in social_links %}
{% set _link = _link|merge(
{
'attributes': create_attribute().addClass(['d-block', 'd-md-inline-block', 'mb-3', 'mb-md-0', 'standalone'])
}
) %}
<div class="mb-3 mb-md-0 d-block d-md-inline-block me-md-4-5">
{{ pattern('link', _link) }}
</div>
{% endfor %}
</div>
</div>
{% endset %}
<div{{ attributes }}>
{{ pattern('content_banner', {
background: 'gray',
title: label,
content: content.oe_sc_person_additional_info,
content: _content,
image: image,
meta: _meta,
}) }}
</div>
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