diff --git a/core/css/styles.css b/core/css/styles.css index d41577ee3c..cf58a3b5f3 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 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 2b18f678a0..6dc8d4c8a6 100644 Binary files a/settings/img/apps.png and b/settings/img/apps.png differ 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 + + + + + + + + + diff --git a/settings/js/apps.js b/settings/js/apps.js index 0540d9b1c5..2ff3f0536d 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -152,7 +152,13 @@ OC.Settings.Apps = OC.Settings.Apps || { a.prepend(filename); a.prepend(img); li.append(a); - container.append(li); + // prepend the new app before the 'More apps' function + $('#apps-management').before(li); + // scroll the app navigation down so the newly added app is seen + $('#navigation').animate({ scrollTop: $('#apps').height() }, 'slow'); + // draw attention to the newly added app entry by flashing it twice + container.children('li[data-id="'+entry.id+'"]').animate({opacity:.3}).animate({opacity:1}).animate({opacity:.3}).animate({opacity:1}); + if (!SVGSupport() && entry.icon.match(/\.svg$/i)) { $(img).addClass('svg'); replaceSVG();