diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-02 15:06:49 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-01-02 15:06:49 +0100 |
commit | 48c7bed59bce35eb5904dc7c7c80f99ba4126892 (patch) | |
tree | dcd0e35e364a65b8213bc525794aedb3509d3cd9 | |
parent | 2d36a20a1df4129608e9573cea3dcbb2e9de2d12 (diff) | |
download | nextcloud-server-48c7bed59bce35eb5904dc7c7c80f99ba4126892.tar.gz nextcloud-server-48c7bed59bce35eb5904dc7c7c80f99ba4126892.zip |
make usedSpacePercent available in the files app
-rw-r--r-- | apps/files/index.php | 4 | ||||
-rw-r--r-- | apps/files/templates/index.php | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/index.php b/apps/files/index.php index b64bde44cc0..cdbedbba477 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -98,6 +98,9 @@ if (OC_Filesystem::isSharable($dir . '/')) { $permissions |= OCP\PERMISSION_SHARE; } +// information about storage capacities +$storageInfo=OC_Helper::getStorageInfo(); + $tmpl = new OCP\Template('files', 'index', 'user'); $tmpl->assign('fileList', $list->fetchPage(), false); $tmpl->assign('breadcrumb', $breadcrumbNav->fetchPage(), false); @@ -108,4 +111,5 @@ $tmpl->assign('files', $files); $tmpl->assign('uploadMaxFilesize', $maxUploadFilesize); $tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); $tmpl->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true))); +$tmpl->assign('usedSpacePercent', $storageInfo['relative']); $tmpl->printPage(); diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index edf048c7e13..5246ff1bea9 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -117,3 +117,4 @@ <!-- config hints for javascript --> <input type="hidden" name="allowZipDownload" id="allowZipDownload" value="<?php echo $_['allowZipDownload']; ?>" /> +<input type="hidden" name="usedSpacePercent" id="usedSpacePercent" value="<?php echo $_['usedSpacePercent']; ?>" /> |