appnavigation.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <div id="app-navigation">
  2. <ul class="with-icon">
  3. <?php $pinned = 0 ?>
  4. <?php foreach ($_['navigationItems'] as $item) {
  5. strpos($item['classes'], 'pinned')!==false ? $pinned++ : '';
  6. ?>
  7. <li data-id="<?php p($item['id']) ?>" class="nav-<?php p($item['id']) ?> <?php p($item['classes']) ?> <?php p($pinned===1?'first-pinned':'') ?>">
  8. <a href="<?php p(isset($item['href']) ? $item['href'] : '#') ?>"
  9. class="nav-icon-<?php p($item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg">
  10. <?php p($item['name']);?>
  11. </a>
  12. </li>
  13. <?php } ?>
  14. <li id="quota" class="pinned <?php p($pinned===0?'first-pinned ':'') ?><?php
  15. if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
  16. ?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
  17. } ?>">
  18. <a href="#" class="icon-quota svg">
  19. <p id="quotatext"><?php
  20. if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
  21. p($l->t('%s of %s used', [$_['usage'], $_['total_space']]));
  22. } else {
  23. p($l->t('%s used', [$_['usage']]));
  24. } ?></p>
  25. <div class="quota-container">
  26. <progress value="<?php p($_['usage_relative']); ?>" max="100"
  27. <?php if($_['usage_relative'] > 80): ?> class="warn" <?php endif; ?>></progress>
  28. </div>
  29. </a>
  30. </li>
  31. </ul>
  32. <div id="app-settings">
  33. <div id="app-settings-header">
  34. <button class="settings-button" data-apps-slide-toggle="#app-settings-content">
  35. <?php p($l->t('Settings'));?>
  36. </button>
  37. </div>
  38. <div id="app-settings-content">
  39. <div id="files-setting-showhidden">
  40. <input class="checkbox" id="showhiddenfilesToggle" checked="checked" type="checkbox">
  41. <label for="showhiddenfilesToggle"><?php p($l->t('Show hidden files')); ?></label>
  42. </div>
  43. <label for="webdavurl"><?php p($l->t('WebDAV'));?></label>
  44. <input id="webdavurl" type="text" readonly="readonly" value="<?php p($_['webdavurl']); ?>" />
  45. <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>
  46. </div>
  47. </div>
  48. </div>