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:
Diffstat (limited to 'plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig')
-rw-r--r--plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig b/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig
index a85ee66852..2d4a25e950 100644
--- a/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig
+++ b/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig
@@ -50,6 +50,18 @@
{% include "@CoreVisualizations/_dataTableViz_htmlTable.twig" with {'dataTable': row.getSubtable(), 'idSubtable': rowSubtableId} %}
{% endif %}
{%- endfor -%}
+ {% if dataTable.getTotalsRow and properties.show_totals_row %}
+ {% set row = dataTable.getTotalsRow %}
+ {% set rowId = 'totalsRow' %}
+ <tr class="{{ row.getMetadata('css_class') }} totalsRow"
+ title="Total values for this table">
+ {% for column in properties.columns_to_display %}
+ <td>
+ {% include "@CoreHome/_dataTableCell.twig" with properties %}
+ </td>
+ {% endfor %}
+ </tr>
+ {% endif %}
{% endif %}
{%- if not showingEmbeddedSubtable -%}
</tbody>