]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove useless translation and make it better on unlimited
authorJoas Schilling <coding@schilljs.com>
Fri, 9 Jun 2017 15:24:10 +0000 (17:24 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 13 Jun 2017 17:27:51 +0000 (12:27 -0500)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/files/templates/appnavigation.php

index 49bfaab3e1699e9045a2fafa14382ddb982e3167..0d08ac53c5c82a334af1ae7f238d0ae6e7e4af1f 100644 (file)
@@ -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; ?>>