aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-03 00:58:49 -0700
committerfriendica <info@friendica.com>2014-07-03 00:58:49 -0700
commitc7086b77fdac7b7cf4e96010c72e0cff4829f10f (patch)
tree3348cdf3748806c6b6bf59c599035068139379c9
parentf3bc1d4b964f6c7b1ed2dcfaaf501ce5576d0425 (diff)
downloadvolse-hubzilla-c7086b77fdac7b7cf4e96010c72e0cff4829f10f.tar.gz
volse-hubzilla-c7086b77fdac7b7cf4e96010c72e0cff4829f10f.tar.bz2
volse-hubzilla-c7086b77fdac7b7cf4e96010c72e0cff4829f10f.zip
move code out of templates - not sure how this even worked.
-rw-r--r--include/reddav.php10
-rw-r--r--version.inc2
-rw-r--r--view/tpl/cloud_directory.tpl18
3 files changed, 19 insertions, 11 deletions
diff --git a/include/reddav.php b/include/reddav.php
index c4b249598..c4ef5bd08 100644
--- a/include/reddav.php
+++ b/include/reddav.php
@@ -1280,7 +1280,15 @@ class RedBrowser extends DAV\Browser\Plugin {
'$header' => t('Files') . ": " . $this->escapeHTML($path) . "/",
'$parentpath' => $parentpath,
'$entries' => $f,
- '$quota' => $quota
+ '$quota' => $quota,
+ '$name' => t('Name'),
+ '$type' => t('Type'),
+ '$size' => t('Size'),
+ '$lastmod' => t('Last Modified'),
+ '$parent' => t('parent'),
+ '$edit' => t('Edit'),
+ '$delete' => t('Delete'),
+ '$total' => t('Total')
));
$output = '';
diff --git a/version.inc b/version.inc
index 265f47ba9..e6ba5b19d 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-07-02.724
+2014-07-03.725
diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl
index fc6b3309a..5d22e4a16 100644
--- a/view/tpl/cloud_directory.tpl
+++ b/view/tpl/cloud_directory.tpl
@@ -2,19 +2,19 @@
<table id="cloud-index">
<tr>
<th></th>
- <th>{{t('Name')}}&nbsp;&nbsp;&nbsp;</th>
+ <th>{{$name}}&nbsp;&nbsp;&nbsp;</th>
<th></th><th></th><th></th>
- <th>{{t('Type')}}&nbsp;&nbsp;&nbsp;</th>
- <th>{{t('Size')}}&nbsp;&nbsp;&nbsp;</th>
- <th>{{t('Last modified')}}</th>
+ <th>{{$type}}&nbsp;&nbsp;&nbsp;</th>
+ <th>{{$size}}&nbsp;&nbsp;&nbsp;</th>
+ <th>{{$lastmod}}</th>
</tr>
<tr><td colspan="8"><hr></td></tr>
{{if $parentpath}}
<tr>
<td>{{$parentpath.icon}}</td>
- <td><a href="{{$parentpath.path}}" title="{{t('parent')}}">..</a></td>
+ <td><a href="{{$parentpath.path}}" title="{{$parent}}">..</a></td>
<td></td><td></td><th></td>
- <td>[{{t('parent')}}]</td>
+ <td>[{{$parent}}]</td>
<td></td>
<td></td>
</tr>
@@ -25,8 +25,8 @@
<td style="min-width: 15em"><a href="{{$item.fullPath}}">{{$item.displayName}}</a></td>
{{if $item.is_owner}}
<td>{{$item.attachIcon}}</td>
- <td style="position:relative;"><a href="{{$item.fileStorageUrl}}/{{$item.attachId}}/edit" title="{{t('Edit')}}"><i class="icon-pencil btn btn-default"></i></a></td>
- <td><a href="{{$item.fileStorageUrl}}/{{$item.attachId}}/delete" title="{{t('Delete')}}" onclick="return confirm('{{t('Are you sure you want to delete this item?')}}');"><i class="icon-remove btn btn-default drop-icons"></i></a></td>
+ <td style="position:relative;"><a href="{{$item.fileStorageUrl}}/{{$item.attachId}}/edit" title="{{$edit}}"><i class="icon-pencil btn btn-default"></i></a></td>
+ <td><a href="{{$item.fileStorageUrl}}/{{$item.attachId}}/delete" title="{{$delete}}" onclick="return confirmDelete();"><i class="icon-remove btn btn-default drop-icons"></i></a></td>
{{else}}
<td></td><td></td><td></td>
{{/if}}
@@ -39,5 +39,5 @@
</table>
{{if $quota.limit || $quota.used}}
- <p><strong>{{t('Total')}}</strong> {{$quota.desc}}</p>
+ <p><strong>{{$total}}</strong> {{$quota.desc}}</p>
{{/if}} \ No newline at end of file