diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-08 11:42:00 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2012-06-08 11:42:29 -0400 |
commit | 4b3ae60558a5d9d18cdd7be0d844d577785f46fb (patch) | |
tree | 8e8c09853a29c1605a289710c12cefa45e92da65 /apps/files_external/settings.php | |
parent | f70615106f3aca819a9e2356d8e6bbff18437188 (diff) | |
download | nextcloud-server-4b3ae60558a5d9d18cdd7be0d844d577785f46fb.tar.gz nextcloud-server-4b3ae60558a5d9d18cdd7be0d844d577785f46fb.zip |
Working UI for external storage mount configuration
Diffstat (limited to 'apps/files_external/settings.php')
-rw-r--r-- | apps/files_external/settings.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/files_external/settings.php b/apps/files_external/settings.php index ce1b308d757..983855ecdcc 100644 --- a/apps/files_external/settings.php +++ b/apps/files_external/settings.php @@ -20,16 +20,15 @@ * License along with this library. If not, see <http://www.gnu.org/licenses/>. */ -OCP\Util::addscript('files_external', 'settings'); -OCP\Util::addstyle('files_external', 'settings'); +OCP\Util::addScript('files_external', 'settings'); +OCP\Util::addStyle('files_external', 'settings'); $tmpl = new OCP\Template('files_external', 'settings'); -$tmpl->assign('allowUserMounting', 'yes'); $tmpl->assign('isAdminPage', true); -$tmpl->assign('storage', array()); +$tmpl->assign('mounts', OC_Mount_Config::getSystemMountPoints()); +$tmpl->assign('backends', OC_Mount_Config::getBackends()); $tmpl->assign('groups', OC_Group::getGroups()); -$tmpl->assign('backends', array('Amazon S3', 'FTP', 'Google Drive', 'SWIFT', 'WebDAV')); -$tmpl->assign('configurations', ''); -$tmpl->assign('options', array('Encrypt', 'Version control', 'Allow sharing')); +$tmpl->assign('users', OCP\User::getUsers()); +$tmpl->assign('allowUserMounting', OCP\Config::getAppValue('files_external', 'allow_user_mounting', 'yes')); return $tmpl->fetchPage(); ?>
\ No newline at end of file |