adapt to show date of death. it adapts but does not show actual date of death yet

This commit is contained in:
Julie Lenaerts 2021-08-12 11:50:11 +02:00
parent 7d97889cbf
commit 8829d234ec

View File

@ -57,6 +57,15 @@
(person.gender == 'man') ? 'man' : 'neuter' %}
<p class="moreinfo">
<i class="fa fa-fw {{ gender }}" title="{{ genderTitle|trans }}"></i>
{%- if person.deathdate is not null -%}
<time datetime="{{ person.deathdate|date('Y-m-d') }}" title="{{ 'Deathdate'|trans }}">
{{ 'Date of death'|trans({'deathdate': person.deathdate|format_date("medium") }) }}
</time>
{%- else -%}
<time datetime="{{ person.birthdate|date('Y-m-d') }}" title="{{ 'Birthdate'|trans }}">
{{ 'Born the date'|trans({'gender': person.gender,
'birthdate': person.birthdate|format_date("medium") }) }}
@ -66,6 +75,8 @@
{{ 'years_old'|trans({ 'age': person.age }) }}
</span>
{%- endif -%}
{%- endif -%}
</p>
{%- endif -%}
{#- tricks to remove easily whitespace after template -#}