diff options
author | fnuesse <felix.nuesse@t-online.de> | 2018-06-17 22:21:11 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-12 16:49:38 +0200 |
commit | ce05cb371b044d08b45b49303f76d23a7fe84875 (patch) | |
tree | 4f8ebb574f3d297fc8b727d3e661021f4d986034 /apps/files/templates | |
parent | fc4baed6e5e862492ac1e2f12a408971d8ee6a26 (diff) | |
download | nextcloud-server-ce05cb371b044d08b45b49303f76d23a7fe84875.tar.gz nextcloud-server-ce05cb371b044d08b45b49303f76d23a7fe84875.zip |
Fixed complete app-breakdown if no favorites are set
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
Hid three-dot menu if no favorites are selected
Signed-off-by: fnuesse <felix.nuesse@t-online.de>
Diffstat (limited to 'apps/files/templates')
-rw-r--r-- | apps/files/templates/appnavigation.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index c2f15fde801..1488bee40d9 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -14,7 +14,7 @@ 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"> + <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> @@ -47,8 +47,10 @@ </li> </ul> </div> - <ul id="quickaccess-list" <?php if($item['enableQuickaccess']=='false'){ ?> style="display: none"<?php } ?>> + <ul id="quickaccess-list" <?php if($item['enableQuickaccess']=='false'){ ?> style="display: none"<?php } ?>> + <?php /*This fixes the styleerrors if no favorites are set*/ if($item['favoritescount']==0){?></ul><?php } ?> <?php } ?> + <?php if($item['quickaccesselement']=='last'){?> </ul> <?php } ?> |