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">
|
<ul class="record_actions_column">
|
||||||
{% if task.startDate is not null %}
|
{% if task.startDate is not null %}
|
||||||
<li title="{{ 'Start'|trans|escape('html_attr') }}">
|
<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>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if task.warningDate is not null %}
|
{% if task.warningDate is not null %}
|
||||||
<li title="{{ 'Warning'|trans|escape('html_attr') }}">
|
<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>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if task.endDate is not null %}
|
{% if task.endDate is not null %}
|
||||||
<li title="{{ 'End'|trans|escape('html_attr') }}">
|
<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>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -62,17 +62,17 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
{% if task.startDate is not null %}
|
{% if task.startDate is not null %}
|
||||||
<dt class="inline">{{ 'Start'|trans }}</dt>
|
<dt class="inline">{{ 'Start'|trans }}</dt>
|
||||||
<dd>{{ task.startDate|format_date('long', 'none') }}</dd>
|
<dd>{{ task.startDate|format_date('long') }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if task.endDate is not null %}
|
{% if task.endDate is not null %}
|
||||||
<dt class="inline">{{ 'End'|trans }}</dt>
|
<dt class="inline">{{ 'End'|trans }}</dt>
|
||||||
<dd>{{ task.endDate|format_date('long', 'none') }}</dd>
|
<dd>{{ task.endDate|format_date('long') }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if task.warningDate is not null %}
|
{% if task.warningDate is not null %}
|
||||||
<dt class="inline">{{ 'Warning'|trans }}</dt>
|
<dt class="inline">{{ 'Warning'|trans }}</dt>
|
||||||
<dd>{{ task.warningDate|format_date('long', 'none') }}</dd>
|
<dd>{{ task.warningDate|format_date('long') }}</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<h3 class="single-line">
|
<h3 class="single-line">
|
||||||
{{ event.datetime|format_date('long', 'none') }}
|
{{ event.datetime|format_date('long') }}
|
||||||
<span class="task"> / {{ 'Task'|trans }}</span> /
|
<span class="task"> / {{ 'Task'|trans }}</span> /
|
||||||
{% if transition is not null %}
|
{% if transition is not null %}
|
||||||
<span class="statement">{{ task_workflow_metadata(event.task, 'transition.sentence', transition)|trans({ '%user%': event.author.username }) }}</span>
|
<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 %}
|
{% if event.task.endDate is not empty %}
|
||||||
<dt class="inline">{{ 'Task end date'|trans }}</dt>
|
<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 %}
|
{% endif %}
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<h3 class="single-line">
|
<h3 class="single-line">
|
||||||
{{ event.datetime|format_date('long', 'short') }}
|
{{ event.datetime|format_date('long') }}
|
||||||
<span class="task">
|
<span class="task">
|
||||||
{% if transition is not null %}
|
{% if transition is not null %}
|
||||||
<span class="statement">{{ task_workflow_metadata(event.task, 'transition.sentence', transition)|trans({ '%user%': event.author.username }) }}</span>
|
<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