[person box] respect "demi-quadratin" in birthdate-deathdate separation

This commit is contained in:
Julien Fastré 2021-08-24 00:01:56 +02:00
parent 7d6def733c
commit ddd1eb5d10

View File

@ -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>
&#x002D;
{# 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>&#x2013;
{%- 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 }) }})