a few more implementations in twig templates

This commit is contained in:
Julie Lenaerts 2022-01-28 10:07:34 +01:00
parent 0a26e7f326
commit feaee8a0b1
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@
<li class="associated-persons"> <li class="associated-persons">
<span class="item-key">{{ 'Participants'|trans ~ ' : ' }}</span> <span class="item-key">{{ 'Participants'|trans ~ ' : ' }}</span>
{% for p in activity.personsAssociated %} {% for p in activity.personsAssociated %}
<span class="badge-person">{{ p|chill_entity_render_box }}</span> <span class="badge-person">{{ p|chill_entity_render_box({'addAgeBadge': true}) }}</span>
{% endfor %} {% endfor %}
</li> </li>
</ul> </ul>

View File

@ -31,7 +31,7 @@
<li class="associated-persons"> <li class="associated-persons">
<span class="item-key">{{ 'Participants'|trans ~ ' : ' }}</span> <span class="item-key">{{ 'Participants'|trans ~ ' : ' }}</span>
{% for p in w.persons %} {% for p in w.persons %}
<span class="badge-person">{{ p|chill_entity_render_box }}</span> <span class="badge-person">{{ p|chill_entity_render_box({'addAgeBadge': true}) }}</span>
{% endfor %} {% endfor %}
</li> </li>
</ul> </ul>

View File

@ -43,7 +43,7 @@
{%- endif -%} {%- endif -%}
{%- if options['addAgeBadge'] -%} {%- if options['addAgeBadge'] -%}
{% if person.age is not null and person.deathDate is null %} {% if person.age is not null and person.deathDate is null %}
<span class="age">({{- 'years_old'|trans({ 'age': person.age }) -}})</span> <span>({{- 'years_old'|trans({ 'age': person.age }) -}})</span>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endmacro raw %} {% endmacro raw %}