aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/templates/appnavigation.php
diff options
context:
space:
mode:
authorfnuesse <felix.nuesse@t-online.de>2018-06-18 11:13:52 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-12 16:49:38 +0200
commit9cd4b53a51c6b1ed4835df5976f7310b6fb3f75f (patch)
tree86e8d81d046045f59f368c6df61775f8b0b22e0f /apps/files/templates/appnavigation.php
parentce05cb371b044d08b45b49303f76d23a7fe84875 (diff)
downloadnextcloud-server-9cd4b53a51c6b1ed4835df5976f7310b6fb3f75f.tar.gz
nextcloud-server-9cd4b53a51c6b1ed4835df5976f7310b6fb3f75f.zip
Added responsive folderadding
Signed-off-by: fnuesse <felix.nuesse@t-online.de> Added collapsible to quickaccesslist Signed-off-by: fnuesse <felix.nuesse@t-online.de> Refactored Code Signed-off-by: fnuesse <felix.nuesse@t-online.de>
Diffstat (limited to 'apps/files/templates/appnavigation.php')
-rw-r--r--apps/files/templates/appnavigation.php20
1 files changed, 12 insertions, 8 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
index 1488bee40d9..5f1baafaf8a 100644
--- a/apps/files/templates/appnavigation.php
+++ b/apps/files/templates/appnavigation.php
@@ -7,18 +7,22 @@
?>
<li data-id="<?php p(isset($item['href']) ? $item['href'] : $item['id']) ?>"
- class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?> <?php p($pinned===1?'first-pinned':'') ?>"
+ class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?> <?php p($pinned===1?'first-pinned':'') ?> <?php if($item['enableQuickaccess']=='true'){ ?> open<?php } ?>"
<?php if(isset($item['folderPosition'])){ ?> folderPos="<?php p($item['folderPosition']);?>"<?php } ?>>
+ <?php if($item['id']=='favorites'){?>
+ <button id="button-collapseQuickAccess" class="collapse"></button><?php } ?>
+
<a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"
class="nav-icon-<?php p($item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg"><?php p($item['name']);?></a>
<?php if($item['id']=='favorites'){?>
-
- <div class="app-navigation-entry-utils" <?php if($item['favoritescount']==0){ ?> style="display: none"<?php } ?>>
- <ul>
- <li class="app-navigation-entry-utils-menu-button svg"><button id="button-<?php p($item['id']) ?>"></button></li>
- </ul>
- </div>
+ <div id="quickaccessbutton" class="app-navigation-entry-utils" <?php if($item['favoritescount']==0){ ?> style="display: none"<?php } ?>>
+ <ul>
+ <li class="app-navigation-entry-utils-menu-button svg">
+ <button id="button-<?php p($item['id']) ?>"></button>
+ </li>
+ </ul>
+ </div>
<div class="app-navigation-entry-menu" id="menu-<?php p($item['id']) ?>">
<ul>
<li>
@@ -47,7 +51,7 @@
</li>
</ul>
</div>
- <ul id="quickaccess-list" <?php if($item['enableQuickaccess']=='false'){ ?> style="display: none"<?php } ?>>
+ <ul id="quickaccess-list" >
<?php /*This fixes the styleerrors if no favorites are set*/ if($item['favoritescount']==0){?></ul><?php } ?>
<?php } ?>