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:
authorStefan Giehl <stefan@matomo.org>2020-02-03 17:52:51 +0300
committerGitHub <noreply@github.com>2020-02-03 17:52:51 +0300
commitcbe27096a5b9b39772bed74e60761651b1c3f546 (patch)
treefc62b0f09ac785d1816b2956beeb5e0d3af73c67 /plugins/UserCountryMap/templates/visitorMap.twig
parent67c8f6e7461772bf9a02b4986b5b5aefc7dc67bb (diff)
Hide visitor map controls if no data is available (#15223)
* Hide visitor map controls if no data is available * Show widget title if there is no data for the map * update ui tests * hide no data titel in widgets * update ui test files
Diffstat (limited to 'plugins/UserCountryMap/templates/visitorMap.twig')
-rw-r--r--plugins/UserCountryMap/templates/visitorMap.twig5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/UserCountryMap/templates/visitorMap.twig b/plugins/UserCountryMap/templates/visitorMap.twig
index cbfc53f02a..f87a2df356 100644
--- a/plugins/UserCountryMap/templates/visitorMap.twig
+++ b/plugins/UserCountryMap/templates/visitorMap.twig
@@ -20,6 +20,9 @@
</div>
<div class="mapWidgetStatus">
{% if noData %}
+ {% if not isWidget %}
+ <h2>{{ 'UserCountryMap_VisitorMap'|translate }}</h2>
+ {% endif %}
<div class="pk-emptyDataTable">{{ 'CoreHome_ThereIsNoDataForThisReport'|translate }}</div>
{% else %}
<span class="loadingPiwik">
@@ -28,6 +31,7 @@
</span>
{% endif %}
</div>
+ {% if not noData %}
<div class="dataTableFeatures" style="padding-top:0;">
<div class="dataTableFooterIcons">
<div class="dataTableFooterWrap" var="graphVerticalBar">
@@ -70,6 +74,7 @@
</select>
</div>
</div>
+ {% endif %}
</div>
</section>