mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
[person box] respect "demi-quadratin" in birthdate-deathdate separation
This commit is contained in:
parent
7d6def733c
commit
ddd1eb5d10
@ -61,16 +61,13 @@
|
|||||||
|
|
||||||
{%- if person.deathdate is not null -%}
|
{%- if person.deathdate is not null -%}
|
||||||
{%- if person.birthdate is not null -%}
|
{%- if person.birthdate is not null -%}
|
||||||
<time datetime="{{ person.birthdate|date('Y-m-d') }}" title="{{ 'birthdate'|trans|e('html_attr') }}">
|
{# must be on one line to avoid spaces with dash #}
|
||||||
{{ person.birthdate|format_date("medium") }}
|
<time datetime="{{ person.birthdate|date('Y-m-d') }}" title="{{ 'birthdate'|trans|e('html_attr') }}">{{ person.birthdate|format_date("medium") }}</time>–
|
||||||
</time>
|
|
||||||
-
|
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ 'Date of death'|trans }}:
|
{{ 'Date of death'|trans }}:
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
<time datetime="{{ person.deathdate|date('Y-m-d') }}" title="{{ 'Deathdate'|trans }}">
|
{#- must be on one line to avoid spaces with dash -#}
|
||||||
{{ person.deathdate|format_date("medium") }}
|
<time datetime="{{ person.deathdate|date('Y-m-d') }}" title="{{ 'Deathdate'|trans }}">{{ person.deathdate|format_date("medium") }}</time>
|
||||||
</time>
|
|
||||||
{% if options['addAge'] %}
|
{% if options['addAge'] %}
|
||||||
<span class="age">
|
<span class="age">
|
||||||
({{ 'years_old'|trans({ 'age': person.age }) }})
|
({{ 'years_old'|trans({ 'age': person.age }) }})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user