From ddd1eb5d105222bc982d158d2028350b1c74a402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 24 Aug 2021 00:01:56 +0200 Subject: [PATCH] [person box] respect "demi-quadratin" in birthdate-deathdate separation --- .../Resources/views/Entity/person.html.twig | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig index ba7f17723..8a9cc4e5d 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Entity/person.html.twig @@ -61,16 +61,13 @@ {%- if person.deathdate is not null -%} {%- if person.birthdate is not null -%} - - - + {# must be on one line to avoid spaces with dash #} + – {%- else -%} {{ 'Date of death'|trans }}: {%- endif -%} - + {#- must be on one line to avoid spaces with dash -#} + {% if options['addAge'] %} ({{ 'years_old'|trans({ 'age': person.age }) }})