From 76eb1f61aefe3b11cdd77df59384ab367236ca79 Mon Sep 17 00:00:00 2001 From: Stefan Giehl <stefan@piwik.org> Date: Fri, 7 Jul 2017 12:13:31 +0200 Subject: [PATCH] Hide dashboard selection box if no dashboards available for selection (#11757) --- plugins/Dashboard/templates/index.twig | 2 ++ 1 file changed, 2 insertions(+) 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 }} -- GitLab