diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-06-05 18:21:41 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-06-05 18:21:41 +0200 |
commit | 62ae39208a0deed71d4cd373c6822946fd489586 (patch) | |
tree | 219d97cf14af0afb43939aa403a5863838cbc794 /apps/files/index.php | |
parent | 9899e10a0411d161db1b4e1302690ac74c1ae72c (diff) | |
download | nextcloud-server-62ae39208a0deed71d4cd373c6822946fd489586.tar.gz nextcloud-server-62ae39208a0deed71d4cd373c6822946fd489586.zip |
Add owner to the storage stats to enable better notifications
* getstoragestats.php returns now the owner and it's display name
* show proper storage stats notifications for shared folders
Diffstat (limited to 'apps/files/index.php')
-rw-r--r-- | apps/files/index.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/index.php b/apps/files/index.php index c7a45e54854..ee12df5f075 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -138,6 +138,8 @@ OCP\Util::addscript('files', 'navigation'); OCP\Util::addscript('files', 'keyboardshortcuts'); $tmpl = new OCP\Template('files', 'index', 'user'); $tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']); +$tmpl->assign('owner', $storageInfo['owner']); +$tmpl->assign('ownerDisplayName', $storageInfo['ownerDisplayName']); $tmpl->assign('isPublic', false); $tmpl->assign("mailNotificationEnabled", $config->getAppValue('core', 'shareapi_allow_mail_notification', 'no')); $tmpl->assign("mailPublicNotificationEnabled", $config->getAppValue('core', 'shareapi_allow_public_notification', 'no')); |