aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRedMatrix <info@friendica.com>2014-12-22 09:45:33 +1100
committerRedMatrix <info@friendica.com>2014-12-22 09:45:33 +1100
commitc732b72a0dde2c8b4d49e63114c9415f44a8a8d7 (patch)
treec6fba54256dcd17f9ed24c46766f1475da259641 /include
parentca56123a161e482d545b2e0e0c3d869eb8c4221f (diff)
parentbe1891c058ccff08d4cafa2bea061424efc0ef82 (diff)
downloadvolse-hubzilla-c732b72a0dde2c8b4d49e63114c9415f44a8a8d7.tar.gz
volse-hubzilla-c732b72a0dde2c8b4d49e63114c9415f44a8a8d7.tar.bz2
volse-hubzilla-c732b72a0dde2c8b4d49e63114c9415f44a8a8d7.zip
Merge pull request #757 from git-marijus/master
files: make mod/filestorage.php load via ajax and some design work. work...
Diffstat (limited to 'include')
-rw-r--r--include/RedDAV/RedBrowser.php24
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
+}