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
20807f637d
commit
448b99a652
@ -40,17 +40,17 @@
|
||||
<ul class="record_actions_column">
|
||||
{% if task.startDate is not null %}
|
||||
<li title="{{ 'Start'|trans|escape('html_attr') }}">
|
||||
<i class="fa fa-play" ></i> {{ task.startDate|format_date('medium', 'none') }}
|
||||
<i class="fa fa-play" ></i> {{ task.startDate|format_date('medium') }}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if task.warningDate is not null %}
|
||||
<li title="{{ 'Warning'|trans|escape('html_attr') }}">
|
||||
<i class="fa fa-exclamation-triangle"></i> {{ task.warningDate|format_date('medium', 'none') }}
|
||||
<i class="fa fa-exclamation-triangle"></i> {{ task.warningDate|format_date('medium') }}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if task.endDate is not null %}
|
||||
<li title="{{ 'End'|trans|escape('html_attr') }}">
|
||||
<i class="fa fa-hourglass-end"></i> {{ task.endDate|format_date('medium', 'none') }}
|
||||
<i class="fa fa-hourglass-end"></i> {{ task.endDate|format_date('medium') }}
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
@ -62,17 +62,17 @@
|
||||
{% else %}
|
||||
{% if task.startDate is not null %}
|
||||
<dt class="inline">{{ 'Start'|trans }}</dt>
|
||||
<dd>{{ task.startDate|format_date('long', 'none') }}</dd>
|
||||
<dd>{{ task.startDate|format_date('long') }}</dd>
|
||||
{% endif %}
|
||||
|
||||
{% if task.endDate is not null %}
|
||||
<dt class="inline">{{ 'End'|trans }}</dt>
|
||||
<dd>{{ task.endDate|format_date('long', 'none') }}</dd>
|
||||
<dd>{{ task.endDate|format_date('long') }}</dd>
|
||||
{% endif %}
|
||||
|
||||
{% if task.warningDate is not null %}
|
||||
<dt class="inline">{{ 'Warning'|trans }}</dt>
|
||||
<dd>{{ task.warningDate|format_date('long', 'none') }}</dd>
|
||||
<dd>{{ task.warningDate|format_date('long') }}</dd>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div>
|
||||
<h3 class="single-line">
|
||||
{{ event.datetime|format_date('long', 'none') }}
|
||||
{{ event.datetime|format_date('long') }}
|
||||
<span class="task"> / {{ 'Task'|trans }}</span> /
|
||||
{% if transition is not null %}
|
||||
<span class="statement">{{ task_workflow_metadata(event.task, 'transition.sentence', transition)|trans({ '%user%': event.author.username }) }}</span>
|
||||
@ -25,7 +25,7 @@
|
||||
|
||||
{% if event.task.endDate is not empty %}
|
||||
<dt class="inline">{{ 'Task end date'|trans }}</dt>
|
||||
<dd>{{ event.task.endDate|format_date('medium', 'none') }}</dd>
|
||||
<dd>{{ event.task.endDate|format_date('medium') }}</dd>
|
||||
{% endif %}
|
||||
</dl>
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div>
|
||||
<h3 class="single-line">
|
||||
{{ event.datetime|format_date('long', 'short') }}
|
||||
{{ event.datetime|format_date('long') }}
|
||||
<span class="task">
|
||||
{% if transition is not null %}
|
||||
<span class="statement">{{ task_workflow_metadata(event.task, 'transition.sentence', transition)|trans({ '%user%': event.author.username }) }}</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user