summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-09 17:24:10 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-06-13 12:27:51 -0500
commit27b2102d6cb01695931614125bbad0835ddbd0b8 (patch)
tree055573321ff0faea733d08e5deeb07130dae14dd /apps/files
parentfe8450fcc9311a3c551c5d9791af42fec667af29 (diff)
downloadnextcloud-server-27b2102d6cb01695931614125bbad0835ddbd0b8.tar.gz
nextcloud-server-27b2102d6cb01695931614125bbad0835ddbd0b8.zip
Remove useless translation and make it better on unlimited
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/templates/appnavigation.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
index 49bfaab3e16..0d08ac53c5c 100644
--- a/apps/files/templates/appnavigation.php
+++ b/apps/files/templates/appnavigation.php
@@ -2,12 +2,15 @@
<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']]));
- }
- ?>">
+ ?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
+ } ?>">
<a href="#" class="nav-icon-quota svg">
- <p id="quotatext"><?php p($l->t('%s of %s used', [$_['usage'], $_['total_space']])); ?></p>
+ <p id="quotatext"><?php
+ if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
+ p($l->t('%s of %s used', [$_['usage'], $_['total_space']]));
+ } else {
+ p($l->t('%s used', [$_['usage']]));
+ } ?></p>
<div class="quota-container">
<div style="width:<?php p($_['usage_relative']);?>%"
<?php if($_['usage_relative'] > 80): ?>class="quota-warning"<?php endif; ?>>