summaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorMichael Letzgus <www@chronos.michael-letzgus.de>2017-03-19 12:23:20 +0100
committerMichael Letzgus <www@chronos.michael-letzgus.de>2017-03-19 12:36:29 +0100
commit0b6ff1706fec8da2a5d02a20b9e13c3882cedd05 (patch)
tree33adc2afe8098a4f8fcbd7184bf178d6ba0645b0 /core/templates
parent1983606f806d50febbc77141350061e84db18c49 (diff)
downloadnextcloud-server-0b6ff1706fec8da2a5d02a20b9e13c3882cedd05.tar.gz
nextcloud-server-0b6ff1706fec8da2a5d02a20b9e13c3882cedd05.zip
Fix duplicate id "apps-management"
Make duplicate id "apps-management" a class since IDs must be unique: https://www.w3.org/TR/2011/WD-html5-20110525/elements.html#the-id-attribute https://api.jquery.com/id-selector/ Signed-off-by: Michael Letzgus <michaelletzgus@users.noreply.github.com>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/layout.user.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 3cfb88bf423..dad5ee1b826 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -81,7 +81,7 @@
</a>
</li>
<?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
- <li id="apps-management" <?php if(count($_['navigation'])>$headerIconCount-1): ?>class="hidden"<?php endif; ?>>
+ <li <?php if(count($_['navigation'])>$headerIconCount-1): ?> class="hidden apps-management"<?php else: ?> class="apps-management" <?php endif; ?>>
<a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
<img src="<?php print_unescaped(image_path('settings', 'apps.svg') . '?v=' . $_['versionHash']); ?>" />
@@ -119,7 +119,7 @@
/* show "More apps" link to app administration directly in app navigation, as last entry */
if(OC_User::isAdminUser(OC_User::getUser())):
?>
- <li id="apps-management">
+ <li class="apps-management">
<a href="<?php print_unescaped(\OC::$server->getURLGenerator()->linkToRoute('settings.AppSettings.viewApps')); ?>" tabindex="4"
<?php if( $_['appsmanagement_active'] ): ?> class="active"<?php endif; ?>>
<svg width="32" height="32" viewBox="0 0 32 32" class="app-icon">