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

Skip to content
Snippets Groups Projects
Commit 87ad166f authored by drishu's avatar drishu
Browse files

OEL-1552: Use field api in template empty check.

parent 14568044
No related branches found
No related tags found
1 merge request!162OEL-1552: Theme the person content type
......@@ -7,13 +7,13 @@
<article{{attributes}}>
<div class="row">
<div class="col-12 col-lg-10 col-xl-9 col-xxl-8">
{% if content.oe_sc_person_additional_info|field_value is not empty %}
{% if not node.oe_sc_person_additional_info.isEmpty() %}
<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 %}
{% if not node.oe_sc_person_documents.isEmpty() %}
<h2 class="mb-4">{{ 'Related documents'|t }}</h2>
<div class="mb-4-5">
{{ content.oe_sc_person_documents|field_value }}
......
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