From 367b248bc0ed2609d538de4f1a2e198f7d0c7d6a Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Wed, 7 Aug 2013 18:18:09 +0200 Subject: [PATCH] show 'More apps' link to app administration directly in app navigation --- core/css/styles.css | 4 ++++ core/templates/layout.user.php | 13 +++++++++++++ lib/app.php | 10 +--------- settings/img/apps.png | Bin 196 -> 259 bytes settings/img/apps.svg | 22 +++++++++++++++------- 5 files changed, 33 insertions(+), 16 deletions(-) diff --git a/core/css/styles.css b/core/css/styles.css index 0dd66fb5b7..dc7e4313f0 100644 --- a/core/css/styles.css +++ b/core/css/styles.css @@ -481,6 +481,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 b7405ea273..3c1114492c 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -89,6 +89,19 @@ + + + +
  • + class="active"> + + + t('More apps')); ?> + + +
  • + diff --git a/lib/app.php b/lib/app.php index 2437896157..5fa650044f 100644 --- a/lib/app.php +++ b/lib/app.php @@ -401,15 +401,7 @@ class OC_App{ // if the user is an admin if(OC_User::isAdminUser(OC_User::getUser())) { - // admin apps menu - $settings[] = array( - "id" => "core_apps", - "order" => 3, - "href" => OC_Helper::linkToRoute( "settings_apps" ).'?installed', - "name" => $l->t("Apps"), - "icon" => OC_Helper::imagePath( "settings", "apps.svg" ) - ); - + // admin settings $settings[]=array( "id" => "admin", "order" => 1000, diff --git a/settings/img/apps.png b/settings/img/apps.png index 2b18f678a0295f45a82250698440a9b6d9e1ed43..6dc8d4c8a6e1f345d150b19c66badceefed15fe8 100644 GIT binary patch delta 208 zcmX@Y*vw?u8Q|y6%O%Cdz`(%k>ERLtq!mDzgAGU)S5mdKI;Vst E0IUN@&j0`b delta 144 zcmZo>I>Kns8Q|y6%O%Cdz`(%k>ERLtqy<2ji5W;H%@zLyq?n7HJVQ7*IBq}me=yO| zHk>oSC&cy4nKMAC|NsC0o;8CL$YLxB@(X5gcy=QV$WicgaSY*zPEKfGzQ%Bkfo&aY n4EF`jH(nMZ4J_$QvxFG-ns6Iw#}|GDs%7wW^>bP0l+XkKiXbSD diff --git a/settings/img/apps.svg b/settings/img/apps.svg index e2cc48f295..338938f256 100644 --- a/settings/img/apps.svg +++ b/settings/img/apps.svg @@ -1,8 +1,16 @@ - - - - - - - + + + + + + image/svg+xml + + + + + + + + +