Skip to content

Commit 57bdbbd

Browse files
committed
Replace nglayouts_format_datetime with format_datetime from Twig Intl extension
1 parent 6a15db3 commit 57bdbbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bundle/Resources/views/admin/components/index.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<li class="nl-component">
7070
<div class="nl-component__name" data-cell-title="{{ 'components.component.name'|trans }}"><a href="{{ ibexa_path(component) }}" target="_blank">{{ component.content.name }}</a></div>
7171
<div class="nl-component__content-type" data-cell-title="{{ 'components.component.content_type'|trans }}">{{ component.content.contentType.name }}</div>
72-
<div class="nl-component__last-modified" data-cell-title="{{ 'components.component.last_modified'|trans }}">{{ component.content.contentInfo.modificationDate|nglayouts_format_datetime }}</div>
72+
<div class="nl-component__last-modified" data-cell-title="{{ 'components.component.last_modified'|trans }}">{{ component.content.contentInfo.modificationDate|format_datetime }}</div>
7373
<div class="nl-component__usage-count" data-cell-title="{{ 'components.component.usage_count'|trans }}">{{ component_layouts[component.content.id].count|default(0) }}</div>
7474
<div class="nl-component__used-in">
7575
{% if has_layouts %}

bundle/Resources/views/themes/admin/content/tab/nglayouts/layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="layout-item">
1010
<div class="layout-name">{{ layout.name }}</div>
1111
<div class="layout-description">{{ layout.description }}</div>
12-
<div class="layout-modified">{{ layout.modified|nglayouts_format_datetime }}</div>
12+
<div class="layout-modified">{{ layout.modified|format_datetime }}</div>
1313

1414
{% if additional_data|default('') is not empty %}
1515
<div class="additional-data">

0 commit comments

Comments
 (0)