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:
authorThomas Steur <tsteur@users.noreply.github.com>2019-10-03 02:26:35 +0300
committerGitHub <noreply@github.com>2019-10-03 02:26:35 +0300
commite5d410561b2e2e0b0601762484a42c425ec4c522 (patch)
tree161500bbafd0ca2992fc80f324f9f3ea6bf25e4b /plugins/CoreHome/templates
parenta4b19cfc5adc166fc025db2093972947f9459fc3 (diff)
Check if widget is enabled in admin home before checking it, fix system summary (#14930)
Diffstat (limited to 'plugins/CoreHome/templates')
-rw-r--r--plugins/CoreHome/templates/quickLinks.twig6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/quickLinks.twig b/plugins/CoreHome/templates/quickLinks.twig
index 4924351660..a44bda7230 100644
--- a/plugins/CoreHome/templates/quickLinks.twig
+++ b/plugins/CoreHome/templates/quickLinks.twig
@@ -1,15 +1,19 @@
<div class="widgetBody quickLinks">
+ {% if hasSitesAdmin %}
<div class="quickLink">
<span class="icon icon-open-source">&nbsp;</span>
<a href="{{ linkTo({'module': 'SitesManager', 'action': 'index', 'showaddsite': '1'}) }}" class="itemLabel">
{{ 'SitesManager_AddSite'|translate|e }}
</a>
</div>
+ {% endif %}
+ {% if hasUsersAdmin %}
<div class="quickLink">
<span class="icon icon-user-add">&nbsp;</span>
<a href="{{ linkTo({'module': 'UsersManager', 'action': 'index', 'showadduser': '1'}) }}" class="itemLabel">
{{ 'UsersManager_AddUser'|translate|e }}
</a>
</div>
+ {% endif %}
<br />
-</div> \ No newline at end of file
+</div>