diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2017-06-09 15:41:06 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-06-13 11:17:43 +0200 |
commit | 3f549609b9cca603418ad7b55401658627e99977 (patch) | |
tree | 75373a0edca02f8b1467860c18fc48a81d48d983 /apps/files/templates/appnavigation.php | |
parent | 0554dba69eeb7caff308caf914331e80ed14380c (diff) | |
download | nextcloud-server-3f549609b9cca603418ad7b55401658627e99977.tar.gz nextcloud-server-3f549609b9cca603418ad7b55401658627e99977.zip |
Style quota entry in files view
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'apps/files/templates/appnavigation.php')
-rw-r--r-- | apps/files/templates/appnavigation.php | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index 28019ba803d..49bfaab3e16 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -1,18 +1,21 @@ <div id="app-navigation"> - <div id="quota" class="section has-tooltip" title="<?php - if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED) { - p($l->t('You are using %s of %s', [$_['usage'], $_['total_space']])); - } else { - p($l->t('You are using %s of %s (%s %%)', [$_['usage'], $_['total_space'], $_['usage_relative']])); - } - ?>"> - <div style="width:<?php p($_['usage_relative']);?>%" - <?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>> - <p id="quotatext"><?php p($l->t('%s of %s in use', [$_['usage'], $_['total_space']])); ?></p> - </div> - </div> - <ul class="with-icon"> + <li id="quota" class="section <?php + if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) { + ?>has-tooltip" title="<?php + p($l->t('%s %%', [$_['usage_relative']])); + } + ?>"> + <a href="#" class="nav-icon-quota svg"> + <p id="quotatext"><?php p($l->t('%s of %s used', [$_['usage'], $_['total_space']])); ?></p> + <div class="quota-container"> + <div style="width:<?php p($_['usage_relative']);?>%" + <?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>> + </div> + </div> + <p id="quotatext-additional"><?php p($l->t('Do you need more space?')); ?></p> + </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'] : '#') ?>" |