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:
authorThomas Steur <tsteur@users.noreply.github.com>2018-12-07 05:28:25 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-12-07 05:28:25 +0300
commit53c4d95a4b60ee099400db8c36ac64a68ffa37a3 (patch)
tree1a6918e045fb9d5a6fe35531854be98faafeb86f /plugins/CoreVisualizations/templates
parent6eb10a35e6388c62b88d77edc5055daa519de32d (diff)
Some work on report totals (#13555)
* some work on totals * fix graphs * tweak rendering of totals row * disable evolution for totals row * let plugins configure totals row visibility * remove metadata * more tweaks and make it configurable * improve code and performance * fix some tests * lots of improvements * support bandwidth and other plugins * fix tests * add screenshot test * also fix existing test * add new method supportsTotalRow * various fixes * Updating some expected test files.
Diffstat (limited to 'plugins/CoreVisualizations/templates')
-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>