add accompanying period opening/closing to global timeline

This commit is contained in:
2021-05-17 13:24:50 +02:00
parent 73653744d7
commit ea477a9842
10 changed files with 155 additions and 67 deletions

View File

@@ -1,18 +1,15 @@
<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-entity__person__first-name"> {{ person.firstName }}</span>
{%- 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-entity__person__first-name">{{ person.firstName }}</span>
<span class="chill-entity__person__last-name">{{ person.lastName }}</span>
{% if addAltNames %}
{% for n in person.altNames %}
{% if loop.first %}({% else %} {% endif %}
{%- 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 %}
</span>
{%- if loop.last %}) {% endif -%}
{%- endfor -%}
{%- endif -%}
{%- if showLink is defined -%}</a>{%- endif -%}</span>