diff options
Diffstat (limited to 'apps/files/templates')
-rw-r--r-- | apps/files/templates/appnavigation.php | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index c811ace8abe..749f36a44e8 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -1,19 +1,21 @@ <div id="app-navigation"> <ul class="with-icon"> - <?php $pinned = 0 ?> + + <?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> + ?> + <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':'') ?>"> + <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="pinned <?php p($pinned===0?'first-pinned ':'') ?><?php if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) { - ?>has-tooltip" title="<?php p($_['usage_relative'] . '%'); + ?>has-tooltip" title="<?php p($_['usage_relative'] . '%'); } ?>"> <a href="#" class="icon-quota svg"> <p id="quotatext"><?php @@ -40,9 +42,15 @@ <input class="checkbox" id="showhiddenfilesToggle" checked="checked" type="checkbox"> <label for="showhiddenfilesToggle"><?php p($l->t('Show hidden files')); ?></label> </div> + <!--Removed to disable disabling, but kept to allow easy reenabling--> + <!--<div id="files-setting-showFavoriteQuickAccess"> + <input class="checkbox" id="showfavoritequickaccessToggle" <?php /*if($_['showQuickAccess']){ */?>checked="checked"<?php /*} */?> type="checkbox"> + <label for="showfavoritequickaccessToggle"><?php /*p($l->t('Enable Favorites Quick Access')); */?></label> + </div>--> <label for="webdavurl"><?php p($l->t('WebDAV'));?></label> - <input id="webdavurl" type="text" readonly="readonly" value="<?php p($_['webdavurl']); ?>" /> + <input id="webdavurl" type="text" readonly="readonly" value="<?php p(\OCP\Util::linkToRemote('webdav')); ?>" /> <em><?php print_unescaped($l->t('Use this address to <a href="%s" target="_blank" rel="noreferrer noopener">access your Files via WebDAV</a>', array(link_to_docs('user-webdav'))));?></em> </div> </div> + </div> |