{% spaceless %} {% set tooltipIndex = column ~ '_tooltip' %} {% if row.getMetadata(tooltipIndex) %}{% endif %} {% if not row.getIdSubDataTable() and column=='label' and row.getMetadata('url') %} {% if not row.getMetadata('logo') %} {% endif %} {% endif %} {% set totals = dataTable.getMetadata('totals') %} {% set labelColumn = columns_to_display|first %} {% set reportLabel = row.getColumn(labelColumn)|truncate(40)|rawSafeDecoded %} {% include "@CoreVisualizations/_dataTableViz_htmlTable_ratio.twig" with { 'label': reportLabel, 'labelColumn': labelColumn, 'translations': properties.translations } %} {% set dimensions = dataTable.getMetadata('dimensions')|default([]) %} {% if column=='label' or column in dimensions %} {% import 'macros.twig' as piwik %} {% if column=='label' %}{{ piwik.logoHtml(row.getMetadata(), row.getColumn('label')) }}{% endif %} {% if row.getMetadata('html_label_prefix') %}{{ row.getMetadata('html_label_prefix') | raw }} {% endif -%} {% endif %} {%- if row.getColumn(column) or (column=='label' and row.getColumn(column) is same as("0")) %}{% if column=='label' %}{{- row.getColumn(column)|rawSafeDecoded -}}{% else %}{% if row.getMetadata('html_column_' ~ column ~ '_prefix') %}{{ row.getMetadata('html_column_' ~ column ~ '_prefix') | raw }}{% endif -%}{{- row.getColumn(column)|number(2,0)|rawSafeDecoded -}}{% if row.getMetadata('html_column_' ~ column ~ '_suffix') %}{{ row.getMetadata('html_column_' ~ column ~ '_suffix') | raw }}{% endif -%}{% endif %} {%- else -%}- {%- endif -%} {% if column=='label' %}{%- if row.getMetadata('html_label_suffix') %}{{ row.getMetadata('html_label_suffix') | raw }}{% endif -%}{% endif %} {% if not row.getIdSubDataTable() and column=='label' and row.getMetadata('url') %} {% endif %} {% if row.getMetadata(tooltipIndex) %}{% endif %} {% endspaceless %}