twig filter format_date need only one argument

This commit is contained in:
2020-09-10 16:00:32 +02:00
parent 609a277f03
commit 675ae7fd5d
4 changed files with 5 additions and 5 deletions

View File

@@ -34,7 +34,7 @@
{% for report in reports %}
<tr>
<td>{{ report.person }}</td>
<td>{% if report.date %}{{ report.date|format_date('long', 'none') }}{% endif %}</td>
<td>{% if report.date %}{{ report.date|format_date('long') }}{% endif %}</td>
<td>{{ report.cFGroup.getName|localize_translatable_string }}</td>
<td>{{ report.scope.name|localize_translatable_string }}</td>
<td><a href="{{ path('report_view', { 'person_id': report.person.id, 'report_id': report.id }) }}">{{ 'View the report' | trans }}</a></td>