diff options
Diffstat (limited to 'apps/files/templates/appnavigation.php')
-rw-r--r-- | apps/files/templates/appnavigation.php | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index bbd78079d39..09b02943688 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -1,6 +1,17 @@ <div id="app-navigation"> <ul class="with-icon"> - <li id="quota" class="section <?php + <?php $pinned = 0 ?> + <?php foreach ($_['navigationItems'] as $item) { + strpos($item['classes'], 'pinned')!==false ? $pinned++ : ''; + ?> + <li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?> <?php p($pinned===1?'first-pinned':'') ?>"> + <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> + </li> + <?php } ?> + <li id="quota" class="section pinned <?php if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) { ?>has-tooltip" title="<?php p($_['usage_relative'] . '%'); } ?>"> @@ -18,14 +29,6 @@ </div> </a> </li> - <?php foreach ($_['navigationItems'] as $item) { ?> - <li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?>"> - <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> - </li> - <?php } ?> </ul> <div id="app-settings"> <div id="app-settings-header"> |