]> source.dussan.org Git - nextcloud-server.git/commitdiff
show 'More apps' link to app administration directly in app navigation
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 7 Aug 2013 16:18:09 +0000 (18:18 +0200)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 7 Aug 2013 16:18:09 +0000 (18:18 +0200)
core/css/styles.css
core/templates/layout.user.php
lib/app.php
settings/img/apps.png
settings/img/apps.svg

index 0dd66fb5b7c3ae3eb07ad40b5622bec63ad3c62d..dc7e4313f0cbf02555ad5126d73e9b4b0c379f2e 100644 (file)
@@ -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; }
index b7405ea273b7f2c6bc8b70cf8e3bc3c3f1086eb5..3c1114492cb3d59362015f6ad483714f56d572cf 100644 (file)
                                                </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>
 
index 2437896157ae5c272556cfa82c852f84f8d3f356..5fa650044f3c46c6db179282c271b986c276dfad 100644 (file)
@@ -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,
index 2b18f678a0295f45a82250698440a9b6d9e1ed43..6dc8d4c8a6e1f345d150b19c66badceefed15fe8 100644 (file)
Binary files a/settings/img/apps.png and b/settings/img/apps.png differ
index e2cc48f295697fc61dfdd1349be43714b981345c..338938f256e8372c74f18357370c7cbef8e1063a 100644 (file)
@@ -1,8 +1,16 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/">
- <rect style="color:#000000" fill-opacity="0" height="97.986" width="163.31" y="-32.993" x="-62.897"/>
- <g>
-  <path style="block-progression:tb;text-indent:0;color:#000000;text-transform:none" d="m2 2v0.5 3 0.5h0.5 3 0.5v-0.5-3-0.5h-0.5-3-0.5zm8 0v0.5 3 0.5h0.5 3 0.5v-0.5-3-0.5h-0.5-3-0.5zm-8 7v0.5 3 0.5h0.5 3 0.5v-0.5-3-0.5h-0.5-3-0.5zm8 0v0.5 3 0.5h0.5 3 0.5v-0.5-3-0.5h-0.5-3-0.5zm1 1h2v2h-2v-2z"/>
-  <path style="block-progression:tb;text-indent:0;color:#000000;text-transform:none" d="m2 3v0.5 3 0.5h0.5 3 0.5v-0.5-3-0.5h-0.5-3-0.5zm8 0v0.5 3 0.5h0.5 3 0.5v-0.5-3-0.5h-0.5-3-0.5zm-8 7v0.5 3 0.5h0.5 3 0.5v-0.5-3-0.5h-0.5-3-0.5zm8 0v0.5 3 0.5h0.5 3 0.5v-0.5-3-0.5h-0.5-3-0.5zm1 1h2v2h-2v-2z" fill="#fff"/>
- </g>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="32" width="32" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/">
+ <metadata>
+  <rdf:RDF>
+   <cc:Work rdf:about="">
+    <dc:format>image/svg+xml</dc:format>
+    <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
+    <dc:title/>
+   </cc:Work>
+  </rdf:RDF>
+ </metadata>
+ <defs></defs>
+ <path fill="#000" d="m14,5,0,8-8,0,0,4,8,0,0,8,4,0,0-8,8,0,0-4-8,0,0-8-4,0z"/>
+ <path fill="#FFF" d="M14,6v8h-8v4h8v8h4v-8h8v-4h-8v-8h-4z"/>
+ <path opacity="0.1" d="m14,7,0,8-8,0,0,4,8,0,0,8,4,0,0-8,8,0,0-4-8,0,0-8-4,0z" fill="#FFF"/>
 </svg>