mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +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' %}
|
(person.gender == 'man') ? 'man' : 'neuter' %}
|
||||||
<p class="moreinfo">
|
<p class="moreinfo">
|
||||||
<i class="fa fa-fw {{ gender }}" title="{{ genderTitle|trans }}"></i>
|
<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 }}">
|
<time datetime="{{ person.birthdate|date('Y-m-d') }}" title="{{ 'Birthdate'|trans }}">
|
||||||
{{ 'Born the date'|trans({'gender': person.gender,
|
{{ 'Born the date'|trans({'gender': person.gender,
|
||||||
'birthdate': person.birthdate|format_date("medium") }) }}
|
'birthdate': person.birthdate|format_date("medium") }) }}
|
||||||
@ -66,6 +75,8 @@
|
|||||||
{{ 'years_old'|trans({ 'age': person.age }) }}
|
{{ 'years_old'|trans({ 'age': person.age }) }}
|
||||||
</span>
|
</span>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
{%- endif -%}
|
||||||
</p>
|
</p>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{#- tricks to remove easily whitespace after template -#}
|
{#- tricks to remove easily whitespace after template -#}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user