mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
18 lines
876 B
Twig
18 lines
876 B
Twig
<span class="chill-entity chill-entity__person">
|
|
{%- if addLink and is_granted('CHILL_PERSON_SEE', person) -%}
|
|
{%- set showLink = true -%}<a href="{{ chill_path_add_return_path('chill_person_view', { 'person_id': person.id }) }}">{%- endif -%}
|
|
<span class="chill_denomination">{{ person.firstName }}</span>
|
|
<span class="chill_denomination">{{ person.lastName }}</span>
|
|
{%- if addAltNames -%}
|
|
{%- for n in person.altNames -%}
|
|
{%- if loop.first -%}({% else %} {%- endif -%}
|
|
<span class="chill-entity__person__alt-name chill-entity__person__altname--{{ n.key }}">
|
|
{{- n.label -}}
|
|
</span>
|
|
{%- if loop.last -%}) {%- endif -%}
|
|
{%- endfor -%}
|
|
{%- endif -%}
|
|
{%- if showLink is defined -%}</a>{%- endif -%}
|
|
{#- tricks to remove easily whitespace after template -#}
|
|
{%- if true -%}</span>{%- endif -%}
|