Skip to content

Commit

Permalink
Update node--ubc-profile--card-vertical.html.twig
Browse files Browse the repository at this point in the history
Add missing affiliated institution field to card
  • Loading branch information
occupant committed Jan 10, 2023
1 parent 5f0f259 commit f591234
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/content/node--ubc-profile--card-vertical.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
</figure>
{% endif %}
<div{{ content_attributes.addClass(content_classes) }}>
{{ title_prefix }}
<h3{{ title_attributes.addClass(title_classes) }}>
<a{{ link_attributes.addClass(link_classes) }} href="{{ url }}" rel="bookmark">
{% if not (node.field_profile_name_prefix.isEmpty == true) and content.field_profile_name_prefix is defined %}
Expand All @@ -169,9 +170,13 @@
{% endif %}
</a>
</h3>
{{ title_suffix }}
{% if not (node.field_profile_pronouns.isEmpty == true) and content.field_profile_pronouns is defined %}
<p class="mt-0 text-xs text-grey-700">{{ content.field_profile_pronouns.0 }}</p>
{% endif %}
{% if not node.isPublished() %}
<div class="unpublished">Unpublished</div>
{% endif %}
{% if not (node.field_profile_role.isEmpty == true) and content.field_profile_role is defined %}
<p class="mt-2 text-sm">{{ content.field_profile_role.0 }}</p>
{% endif %}
Expand All @@ -186,6 +191,14 @@
{%- endfor -%}
</p>
{% endif %}
{% if not (node.field_profile_affiliated.isEmpty == true) and content.field_profile_affiliated is defined %}
<p class="mt-0 text-sm">
{%- for tag in content.field_profile_affiliated['#items'] -%}
{{- tag.entity.name.value -}}
{% if loop.last == false %}, {% endif %}
{%- endfor -%}
</p>
{% endif %}
{% if not (node.field_profile_phone.isEmpty == true) and content.field_profile_phone is defined %}
<p class="text-sm"><svg aria-hidden="true" class="inline-block w-5 h-5 mr-4 text-ubc-blue link-expand-break"><use xlink:href="#icon-phone"></use></svg> {{ content.field_profile_phone.0 }}</p>
{% endif %}
Expand Down

0 comments on commit f591234

Please sign in to comment.