diff options
author | Kate Butler <kate@innocraft.com> | 2019-11-07 23:29:42 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-11-07 23:29:42 +0300 |
commit | f1d6cc7618221813699c0f8c0d97e5c41c48d323 (patch) | |
tree | 11dac7b8c5b1c7b5a301f68df77534ced28d6a74 /plugins | |
parent | c4fc47c78eb44026725c50a7f16233065e03a7aa (diff) |
Use thousands separator in single metric view (#15026)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreVisualizations/templates/macros.twig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreVisualizations/templates/macros.twig b/plugins/CoreVisualizations/templates/macros.twig index bc754f2c19..2956f591b0 100644 --- a/plugins/CoreVisualizations/templates/macros.twig +++ b/plugins/CoreVisualizations/templates/macros.twig @@ -35,9 +35,9 @@ {% for metric in group %} <span class="sparkline-metrics" {% if allMetricsDocumentation[metric.column] is defined and allMetricsDocumentation[metric.column] %}title="{{ allMetricsDocumentation[metric.column] }}"{% endif %}> {% if '%s' in metric.description -%} - {{ metric.description|translate("<strong>"~metric.value~"</strong>")|raw }} + {{ metric.description|translate("<strong>"~metric.value|number(2)~"</strong>")|raw }} {%- else %} - <strong>{{ metric.value }}</strong> {{ metric.description }} + <strong>{{ metric.value|number(2) }}</strong> {{ metric.description }} {%- endif %}{% if not loop.last %}, {% endif %} </span> {% if metric.evolution is defined %} |