{% if properties.show_visualization_only %} {% include visualizationTemplate %} {%- else -%} {% set isDataTableEmpty = (dataTable is not defined or dataTable is null or dataTableHasNoData|default(false)) %} {% set showCardAsContentBlock = (properties.show_as_content_block and properties.show_title and not isWidget) %} {% set showOnlyTitleWithoutCard = not showCardAsContentBlock and properties.title and properties.show_title %} {% if showCardAsContentBlock %}
{% if properties.title %}

{{ properties.title }}

{% endif %} {% elseif showOnlyTitleWithoutCard %}

{{ properties.title }}

{% endif %} {% set showCardTableIsEmpty = not properties.show_as_content_block and isDataTableEmpty and not isWidget %} {% if showCardTableIsEmpty %}
{% endif %} {% set summaryRowId = constant('Piwik\\DataTable::ID_SUMMARY_ROW') %}{# ID_SUMMARY_ROW #} {% set isSubtable = javascriptVariablesToSet.idSubtable is defined and javascriptVariablesToSet.idSubtable != 0 %}
{% if properties.description %}
{{ properties.description }}
{% endif %}
{% if properties.documentation|default is not empty %}

{% endif %} {% if properties.onlineGuideUrl|default is not empty %}{{ 'CoreHome_ReadMoreOnlineGuide'|translate }}{% endif %} {% if reportLastUpdatedMessage is defined and reportLastUpdatedMessage %}{{ reportLastUpdatedMessage|raw }}{% endif %}
{% if error is defined %}
{{ error.message }}
{% else %} {% if properties.show_header_message is defined and properties.show_header_message is not empty %}
{{ properties.show_header_message | raw }}
{% endif %} {% if isDataTableEmpty %}
{% if showReportDataWasPurgedMessage is defined and showReportDataWasPurgedMessage %} {{ 'CoreHome_DataForThisReportHasBeenPurged'|translate(deleteReportsOlderThan) }} {% elseif showPluginArchiveDisabled is defined and showPluginArchiveDisabled%} {{ 'CoreHome_DataForThisReportHasBeenDisabled'|translate('', '')|raw }} {% elseif properties.no_data_message %} {{ properties.no_data_message|raw }} {% else %} {{ 'CoreHome_ThereIsNoDataForThisReport'|translate }} {% endif %}
{% else %} {% include visualizationTemplate %} {% endif %} {% if properties.show_footer %} {% include "@CoreHome/_dataTableFooter.twig" %} {% endif %} {% include "@CoreHome/_dataTableJS.twig" with { reportId: properties.report_id } %} {% endif %}
{% if notifications is not empty and notifications|length %} {% for notificationId, n in notifications %} {{ n.message|notification({'id': notificationId, 'type': n.type, 'title': n.title, 'noclear': n.hasNoClear, 'context': n.context, 'raw': n.raw}, false) }} {% endfor %} {% endif %} {% if showCardTableIsEmpty %}
{% endif %} {% if showCardAsContentBlock %}
{% elseif showOnlyTitleWithoutCard %}
{% endif %} {%- endif %}