aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-12-08 21:16:49 -0500
committerAndrew Manning <tamanning@zoho.com>2016-12-08 21:16:49 -0500
commitbc16a1bcc4a5f58df2f8994cd53661c8f53acab5 (patch)
treea390b6e21bc835cd7efb3665f9f84e508754edfb
parentf5737a63545ef5b18f59775d4a6d39503c493aa5 (diff)
parent33d75ad7b0b203f121d35d857a9c17d71dda6327 (diff)
downloadvolse-hubzilla-bc16a1bcc4a5f58df2f8994cd53661c8f53acab5.tar.gz
volse-hubzilla-bc16a1bcc4a5f58df2f8994cd53661c8f53acab5.tar.bz2
volse-hubzilla-bc16a1bcc4a5f58df2f8994cd53661c8f53acab5.zip
Merge remote-tracking branch 'upstream/dev' into doco
-rw-r--r--Zotlabs/Module/Settings/Channel.php3
-rwxr-xr-xview/tpl/settings_nick_set.tpl6
2 files changed, 8 insertions, 1 deletions
diff --git a/Zotlabs/Module/Settings/Channel.php b/Zotlabs/Module/Settings/Channel.php
index e18416393..b7cce7b96 100644
--- a/Zotlabs/Module/Settings/Channel.php
+++ b/Zotlabs/Module/Settings/Channel.php
@@ -404,8 +404,11 @@ class Channel {
'$desc' => t('Your channel address is'),
'$nickname' => $nickname,
'$subdir' => $subdir,
+ '$davdesc' => t('Your files/photos are accessible via WebDAV at'),
+ '$davpath' => ((get_account_techlevel() > 3) ? z_root() . '/dav/' . $nickname : ''),
'$basepath' => \App::get_hostname()
));
+
$stpl = get_markup_template('settings.tpl');
diff --git a/view/tpl/settings_nick_set.tpl b/view/tpl/settings_nick_set.tpl
index 2460952fe..76fe7cd8d 100755
--- a/view/tpl/settings_nick_set.tpl
+++ b/view/tpl/settings_nick_set.tpl
@@ -1,4 +1,8 @@
<div id="settings-nick-wrapper" class="section-content-info-wrapper">
-<div id="settings-nickname-desc">{{$desc}} <strong>'{{$nickname}}@{{$basepath}}'</strong>{{$subdir}}</div>
+<div id="settings-nickname-desc">{{$desc}} <strong>'{{$nickname}}@{{$basepath}}'</strong></div>
+{{if $davpath}}
+<br>
+<div id="settings-dav-desc">{{$davdesc}} <strong>'{{$davpath}}'</strong></div>
+{{/if}}
</div>
<div id="settings-nick-end" ></div>