Compare commits

...

1 Commits

2 changed files with 4 additions and 4 deletions

View File

@@ -88,9 +88,9 @@
{{ 'Date of death'|trans }}: {{ 'Date of death'|trans }}:
{%- endif -%} {%- endif -%}
{#- must be on one line to avoid spaces with dash -#} {#- 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'] -%} {%- 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 -%}
{%- elseif person.birthdate is not null -%} {%- elseif person.birthdate is not null -%}
<time datetime="{{ person.birthdate|date('Y-m-d') }}" title="{{ 'Birthdate'|trans }}"> <time datetime="{{ person.birthdate|date('Y-m-d') }}" title="{{ 'Birthdate'|trans }}">
@@ -98,7 +98,7 @@
'birthdate': person.birthdate|format_date("medium") }) }} 'birthdate': person.birthdate|format_date("medium") }) }}
</time> </time>
{%- if options['addAge'] -%} {%- 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 -%}
{%- endif -%} {%- endif -%}
</p> </p>