Implemented short quota-design v2

Signed-off-by: Felix Nüsse <Felix.nuesse@t-online.de>
This commit is contained in:
Felix Nüsse 2018-08-27 17:07:43 +02:00 committed by Daniel Kesselberg
parent d2bc85728d
commit d3171a80e0
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View file

@ -12,12 +12,13 @@
<li id="quota" <li id="quota"
class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?><?php class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?><?php
if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) { 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"> <a href="#" class="icon-quota svg">
<p id="quotatext"><?php <p id="quotatext"><?php
if ($_['quota'] !== \OCP\Files\FileInfo::SPACE_UNLIMITED) { 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 { } else {
p($l->t('%s used', [$_['usage']])); p($l->t('%s used', [$_['usage']]));
} ?></p> } ?></p>