diff options
author | marijus <mario@mariovavti.com> | 2014-12-21 20:11:30 +0100 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-12-21 20:11:30 +0100 |
commit | 27d786c979a07eddaa31a9f8fe291360b586b9cf (patch) | |
tree | 7dc3a497fc0712a00bce23f1932c6f682313f664 /include/RedDAV | |
parent | 0c98cacbcf0c27aba6bea62b4bf3dc00c91b3962 (diff) | |
download | volse-hubzilla-27d786c979a07eddaa31a9f8fe291360b586b9cf.tar.gz volse-hubzilla-27d786c979a07eddaa31a9f8fe291360b586b9cf.tar.bz2 volse-hubzilla-27d786c979a07eddaa31a9f8fe291360b586b9cf.zip |
files: make mod/filestorage.php load via ajax and some design work. work in progress...
Diffstat (limited to 'include/RedDAV')
-rw-r--r-- | include/RedDAV/RedBrowser.php | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/include/RedDAV/RedBrowser.php b/include/RedDAV/RedBrowser.php index eb08fd79f..78aacf92b 100644 --- a/include/RedDAV/RedBrowser.php +++ b/include/RedDAV/RedBrowser.php @@ -238,11 +238,21 @@ class RedBrowser extends DAV\Browser\Plugin { $quota['limit'] = $limit; $quota['desc'] = $quotaDesc; - $html .= replace_macros(get_markup_template('cloud_directory.tpl'), array( + $output = ''; + if ($this->enablePost) { + $this->server->broadcastEvent('onHTMLActionsPanel', array($parent, &$output)); + } + + $html .= replace_macros(get_markup_template('cloud_header.tpl'), array( '$header' => t('Files') . ": " . $this->escapeHTML($path) . "/", + '$quota' => $quota, + '$total' => t('Total'), + '$actionspanel' => $output + )); + + $html .= replace_macros(get_markup_template('cloud_directory.tpl'), array( '$parentpath' => $parentpath, '$entries' => $f, - '$quota' => $quota, '$name' => t('Name'), '$type' => t('Type'), '$size' => t('Size'), @@ -250,15 +260,9 @@ class RedBrowser extends DAV\Browser\Plugin { '$parent' => t('parent'), '$edit' => t('Edit'), '$delete' => t('Delete'), - '$total' => t('Total') + '$nick' => $this->auth->getCurrentUser() )); - $output = ''; - if ($this->enablePost) { - $this->server->broadcastEvent('onHTMLActionsPanel', array($parent, &$output)); - } - $html .= $output; - get_app()->page['content'] = $html; load_pdl(get_app()); construct_page(get_app()); @@ -371,4 +375,4 @@ class RedBrowser extends DAV\Browser\Plugin { } return $id; } -}
\ No newline at end of file +} |