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

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

OEL-1552: Only display additional info and documents titles if they are present.

parent 1a20be14
No related branches found
No related tags found
1 merge request!162OEL-1552: Theme the person content type
......@@ -7,14 +7,18 @@
<article{{attributes}}>
<div class="row">
<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>
{% if content.oe_sc_person_additional_info|field_value is not empty %}
<h2 class="mb-4">{{ 'Additional information'|t }}</h2>
<div class="mb-4-5">
{{ content.oe_sc_person_additional_info|field_value }}
</div>
{% endif %}
{% if content.oe_sc_person_documents|field_value is not empty %}
<h2 class="mb-4">{{ 'Related documents'|t }}</h2>
<div class="mb-4-5">
{{ content.oe_sc_person_documents|field_value }}
</div>
{% endif %}
</div>
</div>
</article>
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