Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ {% 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 %} {# using the show_footer to control the header actions as well since this is going to be refactored with the goal of moving the table actions to the top of the report for all reports, at which point the config for the report can be renamed to show_header and show_header_icons #} {% set showTableActionsInHeader = properties.show_footer and properties.show_footer_icons %} {% 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.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 showTableActionsInHeader %}
{% include "@CoreHome/_dataTableActions.twig" with { placement: 'top' } %}
{% endif %} {% 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(externallink('https://matomo.org/faq/how-to-disable-archiving-the-segment-reports-for-specific-plugins'), '')|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 %}