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@piwik.org>2017-07-07 13:13:31 +0300
committerGitHub <noreply@github.com>2017-07-07 13:13:31 +0300
commit76eb1f61aefe3b11cdd77df59384ab367236ca79 (patch)
tree6acc44e8eae5f2a8b94e08b951edd20dd22ca0e3 /plugins
parent2b3f2016c7659f24bc329972051af9a124edd285 (diff)
Hide dashboard selection box if no dashboards available for selection (#11757)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Dashboard/templates/index.twig2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Dashboard/templates/index.twig b/plugins/Dashboard/templates/index.twig
index 17f3a5363d..d30f72fb36 100644
--- a/plugins/Dashboard/templates/index.twig
+++ b/plugins/Dashboard/templates/index.twig
@@ -3,6 +3,7 @@
{% include "@CoreHome/_periodSelect.twig" %}
{{ postEvent("Template.nextToCalendar") }}
{% render dashboardSettingsControl %}
+ {% if dashboards|length %}
<div id="Dashboard" class="piwikTopControl borderedControl piwikSelector">
<ul>
{% for dashboard in dashboards %}
@@ -13,6 +14,7 @@
{% endfor %}
</ul>
</div>
+ {% endif %}
</div>
{% import 'ajaxMacros.twig' as ajax %}
{{ ajax.loadingDiv }}