blob: 144d7fbe47307c5cf94b9c7f18bdd254818d1dc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<div class="insightsDataTable dataTable"
data-table-type="InsightsDataTable"
data-table-onlyinsightsinit="1">
{% if reports.getColumns|length > 0 %}
<div class="dataTableScroller">
<table class="dataTable"
title="{{ consideredGrowth|e('html_attr') }} {{ consideredChanges|e('html_attr') }}">
{% for dataTable in reports.getDataTables()|filter(dataTable => dataTable.getRowsCount > 0) %}
{% set metadata = dataTable.getAllTableMetadata %}
<thead>
{% include "@Insights/table_header.twig" %}
</thead>
<tbody>
{% for row in dataTable.getRows %}
{% include "@Insights/table_row.twig" %}
{% endfor %}
</tbody>
{% endfor %}
</table>
</div>
<script type="text/javascript" defer="defer">
$(document).ready(function () {
require('piwik/UI/DataTable').initNewDataTables();
});
</script>
{% else %}
<div class="pk-emptyDataTable"
title="{{ consideredGrowth|e('html_attr') }} {{ consideredChanges|e('html_attr') }}">
{{ 'Insights_NoResultMatchesCriteria'|translate }}
</div>
{% endif %}
</div>
|