summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-08-09 08:49:41 -0700
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-08-09 08:49:41 -0700
commit4c0ec974b9a8b97625695edd136e1f805af0bf31 (patch)
tree91fe9616004161d034848727b62bf1c3e2554466 /core
parent98f836363a1aee8dbc767068fcb357802f228cf2 (diff)
parent31d50288a501dad64400450914d076b43b6ea037 (diff)
downloadnextcloud-server-4c0ec974b9a8b97625695edd136e1f805af0bf31.tar.gz
nextcloud-server-4c0ec974b9a8b97625695edd136e1f805af0bf31.zip
Merge pull request #4344 from owncloud/appmgmt-in-navigation
show 'More apps' link to app administration directly in app navigation
Diffstat (limited to 'core')
-rw-r--r--core/css/styles.css4
-rw-r--r--core/templates/layout.user.php13
2 files changed, 17 insertions, 0 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index d41577ee3cc..cf58a3b5f3f 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -484,6 +484,10 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; }
}
#navigation li:first-child a { padding-top:16px; }
+#apps-management {
+ opacity: .6;
+}
+
/* USER MENU */
#settings { float:right; margin-top:7px; color:#bbb; text-shadow:0 -1px 0 #000; }
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index b7405ea273b..3c1114492cb 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -89,6 +89,19 @@
</a>
</li>
<?php endforeach; ?>
+
+ <!-- show "More apps" link to app administration directly in app navigation -->
+ <?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
+ <li id="apps-management">
+ <a href="<?php print_unescaped(OC_Helper::linkToRoute('settings_apps').'?installed'); ?>" title=""
+ <?php if( $entry['active'] ): ?> class="active"<?php endif; ?>>
+ <img class="icon svg" src="<?php print_unescaped(OC_Helper::imagePath('settings', 'apps.svg')); ?>"/>
+ <span>
+ <?php p($l->t('More apps')); ?>
+ </span>
+ </a>
+ </li>
+ <?php endif; ?>
</ul>
</div></nav>