From 1325a81e9afaf53415411537ce8db5e2d554ae69 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 27 Feb 2017 15:13:49 -0800 Subject: add file size notes to /cloud actions panel --- Zotlabs/Storage/Browser.php | 4 ++++ view/tpl/cloud_actionspanel.tpl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Zotlabs/Storage/Browser.php b/Zotlabs/Storage/Browser.php index f527a6a44..21e91d2a2 100644 --- a/Zotlabs/Storage/Browser.php +++ b/Zotlabs/Storage/Browser.php @@ -322,12 +322,16 @@ class Browser extends DAV\Browser\Plugin { if(strpos($path,$special) === 0) $path = trim(substr($path,$count),'/'); + $info = t('Please use DAV to upload large (video, audio) files.
See Cloud Desktop Clients'); + + $output .= replace_macros(get_markup_template('cloud_actionspanel.tpl'), array( '$folder_header' => t('Create new folder'), '$folder_submit' => t('Create'), '$upload_header' => t('Upload file'), '$upload_submit' => t('Upload'), '$quota' => $quota, + '$info' => $info, '$channick' => $this->auth->owner_nick, '$aclselect' => $aclselect, '$allow_cid' => acl2json($channel_acl['allow_cid']), diff --git a/view/tpl/cloud_actionspanel.tpl b/view/tpl/cloud_actionspanel.tpl index 36edc3b44..95ad29da2 100644 --- a/view/tpl/cloud_actionspanel.tpl +++ b/view/tpl/cloud_actionspanel.tpl @@ -19,7 +19,7 @@
- {{if $quota.limit || $quota.used}}{{/if}} + {{if $quota.limit || $quota.used}}{{/if}}
-- cgit v1.2.3