mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
twig filter format_date need only one argument
This commit is contained in:
parent
b2048c0f84
commit
041627cd77
@ -42,7 +42,7 @@
|
||||
<tbody>
|
||||
{% for activity in activities %}
|
||||
<tr>
|
||||
<td>{% if activity.date %}{{ activity.date|format_date('long', 'none') }}{% endif %}</td>
|
||||
<td>{% if activity.date %}{{ activity.date|format_date('long') }}{% endif %}</td>
|
||||
<td>{{ activity.durationTime|date('H:i') }}</td>
|
||||
<td>
|
||||
{% if activity.remark is not empty %}
|
||||
|
@ -20,7 +20,7 @@
|
||||
<dd>{{ entity.person }}</dd>
|
||||
|
||||
<dt class="inline">{{ 'Date'|trans }}</dt>
|
||||
<dd>{{ entity.date|format_date('long', 'none') }}</dd>
|
||||
<dd>{{ entity.date|format_date('long') }}</dd>
|
||||
<dt class="inline">{{ 'Duration Time'|trans }}</dt>
|
||||
<dd>{{ entity.durationTime|date('H:i') }}</dd>
|
||||
<dt class="inline">{{ 'Type'|trans }}</dt>
|
||||
|
@ -1,13 +1,13 @@
|
||||
{% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %}
|
||||
|
||||
<div>
|
||||
<h3>{{ activity.date|format_date('long', 'none') }}<span class="activity"> / {{ 'Activity'|trans }}</span></h3>
|
||||
<h3>{{ activity.date|format_date('long') }}<span class="activity"> / {{ 'Activity'|trans }}</span></h3>
|
||||
<div class="statement">
|
||||
<span class="statement">{{ '%user% has done an %activity_type%'|trans(
|
||||
{
|
||||
'%user%' : user,
|
||||
'%activity_type%': activity.type.name|localize_translatable_string,
|
||||
'%date%' : activity.date|format_date('long', 'none') }
|
||||
'%date%' : activity.date|format_date('long') }
|
||||
) }}</span>
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user