Skip to content

Commit 5d8af24

Browse files
committed
Revert 'Implemented short quota-design v2'
1 parent c8af5fb commit 5d8af24

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/files/lib/Controller/ViewController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ public function index($dir = '', $view = '', $fileid = null, $fileNotFound = fal
217217
}
218218
$nav->assign('total_space', $totalSpace);
219219
$nav->assign('quota', $storageInfo['quota']);
220-
$nav->assign('usage_relative_unprecise', round($storageInfo['relative'], 1));
221220
$nav->assign('usage_relative', $storageInfo['relative']);
222221

223222
$contentItems = [];
@@ -312,5 +311,4 @@ private function showFile($fileId) {
312311
}
313312
throw new \OCP\Files\NotFoundException();
314313
}
315-
316314
}

apps/files/templates/appnavigation.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@
1212
<li id="quota"
1313
class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?><?php
1414
if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
15-
?>has-tooltip" title="<?php p($_['usage_relative'] . '%, ');
16-
p($l->t('%s of %s used', [$_['usage'], $_['total_space']]));
15+
?>has-tooltip" title="<?php p($_['usage_relative'] . '%');
1716
} ?>">
1817
<a href="#" class="icon-quota svg">
1918
<p id="quotatext"><?php
2019
if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) {
21-
p($l->t('%s of %s used', [$_['usage_relative_unprecise'].' %', $_['total_space']]));
20+
p($l->t('%s of %s used', [$_['usage'], $_['total_space']]));
2221
} else {
2322
p($l->t('%s used', [$_['usage']]));
2423
} ?></p>

0 commit comments

Comments
 (0)