diff options
author | Felix Nüsse <Felix.nuesse@t-online.de> | 2018-08-27 17:07:43 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-01-03 18:47:30 +0100 |
commit | d3171a80e0e6ad3da878d0612067664dad5423e1 (patch) | |
tree | 82f3fb3f12a4a6d975eaf889459349c68fdf8f70 | |
parent | d2bc85728d6d3c1a790d3eb80a1b27c01c7c2132 (diff) | |
download | nextcloud-server-d3171a80e0e6ad3da878d0612067664dad5423e1.tar.gz nextcloud-server-d3171a80e0e6ad3da878d0612067664dad5423e1.zip |
Implemented short quota-design v2
Signed-off-by: Felix Nüsse <Felix.nuesse@t-online.de>
-rw-r--r-- | apps/files/templates/appnavigation.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php index c6361d0ca4f..fecaa8401a9 100644 --- a/apps/files/templates/appnavigation.php +++ b/apps/files/templates/appnavigation.php @@ -12,12 +12,13 @@ <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'] . '%, '); + p($l->t('%s of %s used', [$_['usage'], $_['total_space']])); } ?>"> <a href="#" class="icon-quota svg"> <p id="quotatext"><?php if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) { - p($l->t('%1$s of %2$s used', [$_['usage'], $_['total_space']])); + p($l->t('%1$s%% of %2$s used', [round($_['usage_relative'], 1), $_['total_space']])); } else { p($l->t('%s used', [$_['usage']])); } ?></p> |