From 675ae7fd5d1059411823c0e1d2d63427f30c71bf Mon Sep 17 00:00:00 2001 From: Tchama Date: Thu, 10 Sep 2020 16:00:32 +0200 Subject: [PATCH] twig filter format_date need only one argument --- Resources/views/Report/list.html.twig | 2 +- Resources/views/Report/view.html.twig | 2 +- Resources/views/Search/results.html.twig | 2 +- Resources/views/Timeline/report_person_context.html.twig | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Resources/views/Report/list.html.twig b/Resources/views/Report/list.html.twig index fe6d90a65..485771f51 100644 --- a/Resources/views/Report/list.html.twig +++ b/Resources/views/Report/list.html.twig @@ -41,7 +41,7 @@ {% for report in reports %} - {% if report.date %}{{ report.date|format_date('long', 'none') }}{% endif %} + {% if report.date %}{{ report.date|format_date('long') }}{% endif %} {{ report.cFGroup.getName|localize_translatable_string }} {{ report.scope.name|localize_translatable_string }} diff --git a/Resources/views/Report/view.html.twig b/Resources/views/Report/view.html.twig index 503fb7910..f1c6ffdae 100644 --- a/Resources/views/Report/view.html.twig +++ b/Resources/views/Report/view.html.twig @@ -32,7 +32,7 @@
{{ 'Circle'|trans }} :
{{ entity.scope.name|localize_translatable_string }}
{{ 'Date'|trans }} :
-
{{ entity.date|format_date('long', 'none') }}
+
{{ entity.date|format_date('long') }}
{{ 'User'|trans }} :
{{ entity.user }}
diff --git a/Resources/views/Search/results.html.twig b/Resources/views/Search/results.html.twig index 55a93888e..68367bebd 100644 --- a/Resources/views/Search/results.html.twig +++ b/Resources/views/Search/results.html.twig @@ -34,7 +34,7 @@ {% for report in reports %} {{ report.person }} - {% if report.date %}{{ report.date|format_date('long', 'none') }}{% endif %} + {% if report.date %}{{ report.date|format_date('long') }}{% endif %} {{ report.cFGroup.getName|localize_translatable_string }} {{ report.scope.name|localize_translatable_string }} {{ 'View the report' | trans }} diff --git a/Resources/views/Timeline/report_person_context.html.twig b/Resources/views/Timeline/report_person_context.html.twig index 05a129929..e9bcba85b 100644 --- a/Resources/views/Timeline/report_person_context.html.twig +++ b/Resources/views/Timeline/report_person_context.html.twig @@ -1,11 +1,11 @@
-

{{ report.date|format_date('long', 'none') }} / {{ 'Report'|trans }}

+

{{ report.date|format_date('long') }} / {{ 'Report'|trans }}

{{ '%user% has filled a %report_label% report'|trans( { '%user%' : user, '%report_label%': report.CFGroup.name|localize_translatable_string, - '%date%' : report.date|format_date('long', 'none') } + '%date%' : report.date|format_date('long') } ) }}
{% if custom_fields_in_summary|length > 0 %}