mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +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.birthdate is not null -%}
|
||||
<time datetime="{{ person.birthdate|date('Y-m-d') }}" title="{{ 'birthdate'|trans|e('html_attr') }}">
|
||||
{{ person.birthdate|format_date("medium") }}
|
||||
</time>
|
||||
-
|
||||
{# must be on one line to avoid spaces with dash #}
|
||||
<time datetime="{{ person.birthdate|date('Y-m-d') }}" title="{{ 'birthdate'|trans|e('html_attr') }}">{{ person.birthdate|format_date("medium") }}</time>–
|
||||
{%- else -%}
|
||||
{{ 'Date of death'|trans }}:
|
||||
{%- endif -%}
|
||||
<time datetime="{{ person.deathdate|date('Y-m-d') }}" title="{{ 'Deathdate'|trans }}">
|
||||
{{ person.deathdate|format_date("medium") }}
|
||||
</time>
|
||||
{#- must be on one line to avoid spaces with dash -#}
|
||||
<time datetime="{{ person.deathdate|date('Y-m-d') }}" title="{{ 'Deathdate'|trans }}">{{ person.deathdate|format_date("medium") }}</time>
|
||||
{% if options['addAge'] %}
|
||||
<span class="age">
|
||||
({{ 'years_old'|trans({ 'age': person.age }) }})
|
||||
|
Loading…
x
Reference in New Issue
Block a user