Commit fc22a22f authored by tBKoT's avatar tBKoT
Browse files

Issue #3205264 by tBKoT: Update profile template

parent 826df3d4
......@@ -121,14 +121,33 @@
</div>
{% endif %}
{% if content.field_profile_profile_tag['#items'] %}
<div class="card--content-merged__list">
{% if content.field_profile_profile_tag['#items'] and profile_tagging_active %}
{% if profile_tagging_allow_split %}
{% for item in profile_tagging_hierarchy %}
<div class="card--content-merged__list">
<h5>{{ item.title }}</h5>
<div class="list-item__text">
{% for tag in item.tags %}
<a href="{{ tag.url }}">
<div class="badge badge--pill badge--large badge-default">{{ tag.name }}</div>
</a>
{% endfor %}
</div>
</div>
{% endfor %}
{% else %}
<div class="card--content-merged__list">
<h5>{% trans %}Profile tags{% endtrans %}</h5>
<div class="list-item__text">
{% for item in content.field_profile_profile_tag['#items'] %}
<div class="badge badge--pill badge--large badge-default">{{ item.entity.label }}</div>
{% for item in profile_tagging_hierarchy %}
{% for tag in item.tags %}
<a href="{{ tag.url }}">
<div class="badge badge--pill badge--large badge-default">{{ tag.name }}</div>
</a>
{% endfor %}
{% endfor %}
</div>
{% endif %}
</div>
{% endif %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment