diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-10-03 02:26:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 02:26:35 +0300 |
commit | e5d410561b2e2e0b0601762484a42c425ec4c522 (patch) | |
tree | 161500bbafd0ca2992fc80f324f9f3ea6bf25e4b /plugins/CoreHome/templates | |
parent | a4b19cfc5adc166fc025db2093972947f9459fc3 (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.twig | 6 |
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"> </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"> </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> |