mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
twig filter format_date need only one argument
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Date'|trans }} </th>
|
||||
<td>{{ event.date|format_date('long', 'short') }}</td>
|
||||
<td>{{ event.date|format_date('long') }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -40,7 +40,7 @@
|
||||
<td>{{ form_widget(participation.status) }}</td>
|
||||
<td>{{ participation.vars.value.lastUpdate|ago }} {# sf4 check: filter 'time_diff' is abandoned,
|
||||
alternative: knplabs/knp-time-bundle provide filter 'ago' #}
|
||||
<i class="fa fa-info-circle" title="{{ participation.vars.value.lastUpdate|format_date("long", "medium")|escape('html_attr') }}"></i>
|
||||
<i class="fa fa-info-circle" title="{{ participation.vars.value.lastUpdate|format_date("long")|escape('html_attr') }}"></i>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
@@ -17,7 +17,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{{ 'Date'|trans }} </th>
|
||||
<td>{{ participation.event.date|format_date('long', 'short') }}</td>
|
||||
<td>{{ participation.event.date|format_date('long') }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user