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