Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-10-12 04:09:17 +0300
committermattab <matthieu.aubry@gmail.com>2015-10-12 04:09:17 +0300
commit12d44e37ec0b0cf57f9904341a93fc7645d83bd3 (patch)
tree450c586232fe9f6f0ca7932d90d2ed802e86ce52
parent7d2c0fa345346397eb8d5fd2e5604ede5541571a (diff)
Do not format the 'label' column
-rw-r--r--plugins/CoreHome/templates/_dataTableCell.twig5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/_dataTableCell.twig b/plugins/CoreHome/templates/_dataTableCell.twig
index 4b42afd9b4..1bcd1bb0f2 100644
--- a/plugins/CoreHome/templates/_dataTableCell.twig
+++ b/plugins/CoreHome/templates/_dataTableCell.twig
@@ -41,7 +41,10 @@
{{ piwik.logoHtml(row.getMetadata(), row.getColumn('label')) }}
{% if row.getMetadata('html_label_prefix') %}<span class='label-prefix'>{{ row.getMetadata('html_label_prefix') | raw }}&nbsp;</span>{% endif -%}
{%- if row.getMetadata('html_label_suffix') %}<span class='label-suffix'>{{ row.getMetadata('html_label_suffix') | raw }}</span>{% endif -%}
-{% endif %}<span class="value">{% if row.getColumn(column) %}{{- row.getColumn(column)|number(2,0)|raw -}}{% else %}-{% endif %}</span>
+{% endif %}<span class="value">
+ {%- if row.getColumn(column) %}{% if column=='label' %}{{- row.getColumn(column)|raw -}}{% else %}{{- row.getColumn(column)|number(2,0)|raw -}}{% endif %}
+ {%- else -%}-
+ {%- endif -%}</span>
{% if column=='label' %}</span>{% endif %}
{% if not row.getIdSubDataTable() and column=='label' and row.getMetadata('url') %}
</a>