]> source.dussan.org Git - nextcloud-server.git/commitdiff
Apps management as sticky footer and rename to 'Apps', fix #4622
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Fri, 30 Aug 2013 09:17:31 +0000 (11:17 +0200)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Fri, 30 Aug 2013 09:17:31 +0000 (11:17 +0200)
core/css/styles.css
core/templates/layout.user.php

index ce0d5abfc785365a493c80dff3e68abaf5fad0a5..ad9fcb4346653cc436c163ee6605009f2ce33215 100644 (file)
@@ -501,6 +501,9 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; }
 #navigation:hover {
        overflow-y: auto; /* show scrollbar only on hover */
 }
+#apps {
+       height: 100%;
+}
 #navigation a span {
        display: block;
        text-decoration: none;
@@ -545,9 +548,24 @@ label.infield { cursor:text !important; top:1.05em; left:.85em; }
                padding-top: 20px;
        }
 
+/* Apps management as sticky footer, less obtrusive in the list */
+#navigation .wrapper {
+       min-height: 100%;
+       margin: 0 auto -72px;
+}
+#apps-management, #navigation .push {
+       height: 70px;
+}
 #apps-management {
+       -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
+       filter: alpha(opacity=60);
        opacity: .6;
 }
+#apps-management .icon {
+       padding-bottom: 0;
+}
+
+
 
 
 /* USER MENU */
index 3c1114492cb3d59362015f6ad483714f56d572cf..1e0f4a75c3cb1a8e7ca269a2320be61886f9b772 100644 (file)
@@ -78,6 +78,7 @@
 
                <nav><div id="navigation">
                        <ul id="apps" class="svg">
+                               <div class="wrapper"><!-- for sticky footer of apps management -->
                                <?php foreach($_['navigation'] as $entry): ?>
                                        <li data-id="<?php p($entry['id']); ?>">
                                                <a href="<?php print_unescaped($entry['href']); ?>" title=""
                                                </a>
                                        </li>
                                <?php endforeach; ?>
+                               <?php if(OC_User::isAdminUser(OC_User::getUser())): ?>
+                                       <div class="push"></div><!-- for for sticky footer of apps management -->
+                               <?php endif; ?>
+                               </div>
 
-                               <!-- show "More apps" link to app administration directly in app navigation -->
+                               <!-- show "More apps" link to app administration directly in app navigation, as sticky footer -->
                                <?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')); ?>
+                                                               <?php p($l->t('Apps')); ?>
                                                        </span>
                                                </a>
                                        </li>