mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
adapt to show date of death. it adapts but does not show actual date of death yet
This commit is contained in:
parent
7d97889cbf
commit
8829d234ec
@ -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 -#}
|
||||
|
Loading…
x
Reference in New Issue
Block a user