Skip to content

Commit cca5bc5

Browse files
committed
add number formating
1 parent 137d5cb commit cca5bc5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Resources/views/themes/admin/ibexa_dataflow/Item/details.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
</tr>
3737
<tr>
3838
<td>{{ 'coderhapsodie.ibexa_dataflow.history.details.count'|trans }}</td>
39-
<td>{{ item.count }}</td>
39+
<td>{{ item.count ? item.count|format_number(locale: app.request.locale) : '' }}</td>
4040
</tr>
4141
<tr>
4242
<td>{{ 'coderhapsodie.ibexa_dataflow.history.details.errors'|trans }}</td>
43-
<td>{{ item.exceptions|length }}</td>
43+
<td>{{ item.exceptions|length|format_number(locale: app.request.locale) }}</td>
4444
</tr>
4545
<tr>
4646
<td>{{ 'coderhapsodie.ibexa_dataflow.history.details.type'|trans }}</td>

src/Resources/views/themes/admin/ibexa_dataflow/parts/tab/job_list.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
{% set body_row_cols = body_row_cols|merge([
1919
{content: job.label},
2020
{content: date(job.requested_date)|ibexa_short_datetime},
21-
{content: job.count|default('')},
22-
{content: job.exceptions|length},
21+
{content: job.count is not null ? job.count|format_number(locale: app.request.locale) : ''},
22+
{content: job.exceptions|length|format_number(locale: app.request.locale)},
2323
{content: job.start_time ? date(job.start_time)|ibexa_short_datetime : ''},
2424
{content: job.end_time ? date(job.end_time)|ibexa_short_datetime : ''},
2525
{content: macros.translateStatus(job.status)},

0 commit comments

Comments
 (0)