summaryrefslogtreecommitdiffstats
path: root/apps/files/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-01-26 18:49:45 +0100
committerRobin Appelman <icewind@owncloud.com>2013-01-26 18:49:45 +0100
commit930b9b9cd0e60170549485164f33b5fc004d7ca2 (patch)
treefa966587794f11861e4e46f52957840de6cb4a4a /apps/files/index.php
parentf85838177596b3214430e750b5425bfe3c0cde86 (diff)
parentc9e25d3fab17b178759dd6d2f9488aa4cf37fbbb (diff)
downloadnextcloud-server-930b9b9cd0e60170549485164f33b5fc004d7ca2.tar.gz
nextcloud-server-930b9b9cd0e60170549485164f33b5fc004d7ca2.zip
merge master into filesystem
Diffstat (limited to 'apps/files/index.php')
-rw-r--r--apps/files/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files/index.php b/apps/files/index.php
index b1cd40f2546..13eebfc6990 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -115,6 +115,9 @@ if ($needUpgrade) {
$tmpl = new OCP\Template('files', 'upgrade', 'user');
$tmpl->printPage();
} else {
+ // information about storage capacities
+ $storageInfo=OC_Helper::getStorageInfo();
+
OCP\Util::addscript('files', 'fileactions');
OCP\Util::addscript('files', 'files');
OCP\Util::addscript('files', 'keyboardshortcuts');
@@ -128,5 +131,6 @@ if ($needUpgrade) {
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
$tmpl->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
+ $tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']);
$tmpl->printPage();
}