1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-22 06:57:53 +00:00
Files
matomo/plugins/Insights/templates/overviewWidget.twig
Lukas Winkler a35070be51 Twig 3 upgrade (#15573)
* proof of concept of Twig 3 upgrade

* some for if template fixes

* potentially fix RenderTokenParser

* comment out RenderTokenParser

* clearCompiledTemplates() using unlinkRecursive()

* macro imported in block and used in subblock is not valid

twigphp/Twig#3090

* more template fixes

* remove non existing clearTemplateCache()

* add missing parameter to unlinkRecursive

* Use custom MethodCallExpression to fix RenderTokenParser

* increase minimum php version to 7.2.5

* submodule update

* fix twig loop filter

* updates expected UI files

* fix twig loop filter

* fix twig loop filter

* fix neutral evolution check

* fix macro usage

* convert some conditions to filters

* fix macro include

* remove debug code as default logging is good enough

* submodule updates

Co-authored-by: sgiehl <stefan@matomo.org>
2020-06-04 13:47:54 +02:00

38 خطوط
1.3 KiB
Twig

<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>