From f5912349f24814c1a3828acb5d71ae5365a23c8b Mon Sep 17 00:00:00 2001 From: James Date: Tue, 10 Jan 2023 10:40:57 -0800 Subject: [PATCH] Update node--ubc-profile--card-vertical.html.twig Add missing affiliated institution field to card --- .../node--ubc-profile--card-vertical.html.twig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/templates/content/node--ubc-profile--card-vertical.html.twig b/templates/content/node--ubc-profile--card-vertical.html.twig index 4394b7a..01e83d6 100644 --- a/templates/content/node--ubc-profile--card-vertical.html.twig +++ b/templates/content/node--ubc-profile--card-vertical.html.twig @@ -158,6 +158,7 @@ {% endif %} + {{ title_prefix }} {% if not (node.field_profile_name_prefix.isEmpty == true) and content.field_profile_name_prefix is defined %} @@ -169,9 +170,13 @@ {% endif %} + {{ title_suffix }} {% if not (node.field_profile_pronouns.isEmpty == true) and content.field_profile_pronouns is defined %}

{{ content.field_profile_pronouns.0 }}

{% endif %} + {% if not node.isPublished() %} +
Unpublished
+ {% endif %} {% if not (node.field_profile_role.isEmpty == true) and content.field_profile_role is defined %}

{{ content.field_profile_role.0 }}

{% endif %} @@ -186,6 +191,14 @@ {%- endfor -%}

{% endif %} + {% if not (node.field_profile_affiliated.isEmpty == true) and content.field_profile_affiliated is defined %} +

+ {%- for tag in content.field_profile_affiliated['#items'] -%} + {{- tag.entity.name.value -}} + {% if loop.last == false %}, {% endif %} + {%- endfor -%} +

+ {% endif %} {% if not (node.field_profile_phone.isEmpty == true) and content.field_profile_phone is defined %}

{{ content.field_profile_phone.0 }}

{% endif %}