Show new webdav link in files ui

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim 2019-12-05 05:48:36 +08:00
parent b0a7028978
commit 4bb061c06b
No known key found for this signature in database
GPG Key ID: 9349B59FB54594AC
2 changed files with 2 additions and 1 deletions

View File

@ -240,6 +240,7 @@ class ViewController extends Controller {
$nav->assign('total_space', $totalSpace);
$nav->assign('quota', $storageInfo['quota']);
$nav->assign('usage_relative', $storageInfo['relative']);
$nav->assign('user', $user);
$contentItems = [];

View File

@ -42,7 +42,7 @@
</div>
<label for="webdavurl"><?php p($l->t('WebDAV')); ?></label>
<input id="webdavurl" type="text" readonly="readonly"
value="<?php p(\OCP\Util::linkToRemote('webdav')); ?>"/>
value="<?php p(\OCP\Util::linkToRemote('dav/files/' . $_['user'])); ?>"/>
<em><?php print_unescaped($l->t('Use this address to <a href="%s" target="_blank" rel="noreferrer noopener">access your Files via WebDAV</a>', array(link_to_docs('user-webdav')))); ?></em>
</div>
</div>