diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-06-24 18:33:10 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-06-24 18:33:10 +0200 |
commit | d059ee34a09fe32e56a236d9ff2c5d9060b2f063 (patch) | |
tree | 9024eac319ad59f0bf7937d6c97fc0f72a281bc4 /apps/files/templates/appnavigation.php | |
parent | f310b964d453ed0192661d005e5f575918bda2c7 (diff) | |
download | nextcloud-server-d059ee34a09fe32e56a236d9ff2c5d9060b2f063.tar.gz nextcloud-server-d059ee34a09fe32e56a236d9ff2c5d9060b2f063.zip |
Show used space in mb instead of %
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files/templates/appnavigation.php')
-rw-r--r-- | apps/files/templates/appnavigation.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index 00ea164752d..7f174b08a6c 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -17,9 +17,9 @@ </li> <?php else: ?> <li id="quota" class="has-tooltip pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?>" - title="<?php p($_['usage_relative'] . '%, '); p($l->t('%s of %s used', [$_['usage'], $_['total_space']])); ?>"> + title="<?php p($l->t('%s (%s%%) of %s used', [$_['usage'], $_['usage_relative'], $_['total_space']])); ?>"> <a href="#" class="icon-quota svg"> - <p id="quotatext"><?php p($l->t('%1$s%% of %2$s used', [round($_['usage_relative'], 1), $_['total_space']])); ?></p> + <p id="quotatext"><?php p($l->t('%1$s of %2$s used', [$_['usage'], $_['total_space']])); ?></p> <div class="quota-container"> <progress value="<?php p($_['usage_relative']); ?>" max="100" class="<?= ($_['usage_relative'] > 80) ? 'warn' : '' ?>"></progress> </div> |