age displayed between parenthesis in twig renderbox. Validation not yet correct

This commit is contained in:
Julie Lenaerts 2021-12-13 20:08:16 +01:00
parent 3973cdd3f6
commit c6c0b7ce2f
2 changed files with 4 additions and 4 deletions

View File

@ -88,9 +88,9 @@
{{ 'Date of death'|trans }}:
{%- endif -%}
{#- 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>
<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 }) }}</span>
<span class="age">({{ 'years_old'|trans({ 'age': person.age }) }})</span>
{%- endif -%}
{%- elseif person.birthdate is not null -%}
<time datetime="{{ person.birthdate|date('Y-m-d') }}" title="{{ 'Birthdate'|trans }}">
@ -98,7 +98,7 @@
'birthdate': person.birthdate|format_date("medium") }) }}
</time>
{%- if options['addAge'] -%}
<span class="age">{{- 'years_old'|trans({ 'age': person.age }) -}}</span>
<span class="age">({{- 'years_old'|trans({ 'age': person.age }) -}})</span>
{%- endif -%}
{%- endif -%}
</p>

@ -1 +1 @@
Subproject commit 5952eda44831896991989c2e4881adc26329140e
Subproject commit bd95d3c96a437757b7e8f35cdfd30da9aeac1a01