summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-08-30 03:47:15 -0700
committerMorris Jobke <morris.jobke@gmail.com>2013-08-30 03:47:15 -0700
commitbf6981312a48aa4ce7307cd7b11cf09250d8794e (patch)
tree35f5883c4a183f7f7708e026f1fd740777d3be2a
parent22e1f73d5e46f4c3d32e250ce9eb3c112875706e (diff)
parentc9c4ab22a489c373cf994da490353e2f3e1cadd1 (diff)
downloadnextcloud-server-bf6981312a48aa4ce7307cd7b11cf09250d8794e.tar.gz
nextcloud-server-bf6981312a48aa4ce7307cd7b11cf09250d8794e.zip
Merge pull request #4660 from owncloud/apps-management-sticky
Apps management as sticky footer and rename to 'Apps', fix #4622
-rw-r--r--core/css/styles.css18
-rw-r--r--core/templates/layout.user.php9
2 files changed, 25 insertions, 2 deletions
diff --git a/core/css/styles.css b/core/css/styles.css
index ce0d5abfc78..ad9fcb43466 100644
--- a/core/css/styles.css
+++ b/core/css/styles.css
@@ -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 */
diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php
index 3c1114492cb..1e0f4a75c3c 100644
--- a/core/templates/layout.user.php
+++ b/core/templates/layout.user.php
@@ -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=""
@@ -89,15 +90,19 @@
</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>