move code out of templates - not sure how this even worked.

This commit is contained in:
friendica 2014-07-03 00:58:49 -07:00
parent f3bc1d4b96
commit c7086b77fd
3 changed files with 19 additions and 11 deletions

View File

@ -1280,7 +1280,15 @@ class RedBrowser extends DAV\Browser\Plugin {
'$header' => t('Files') . ": " . $this->escapeHTML($path) . "/", '$header' => t('Files') . ": " . $this->escapeHTML($path) . "/",
'$parentpath' => $parentpath, '$parentpath' => $parentpath,
'$entries' => $f, '$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 = ''; $output = '';

View File

@ -1 +1 @@
2014-07-02.724 2014-07-03.725

View File

@ -2,19 +2,19 @@
<table id="cloud-index"> <table id="cloud-index">
<tr> <tr>
<th></th> <th></th>
<th>{{t('Name')}}&nbsp;&nbsp;&nbsp;</th> <th>{{$name}}&nbsp;&nbsp;&nbsp;</th>
<th></th><th></th><th></th> <th></th><th></th><th></th>
<th>{{t('Type')}}&nbsp;&nbsp;&nbsp;</th> <th>{{$type}}&nbsp;&nbsp;&nbsp;</th>
<th>{{t('Size')}}&nbsp;&nbsp;&nbsp;</th> <th>{{$size}}&nbsp;&nbsp;&nbsp;</th>
<th>{{t('Last modified')}}</th> <th>{{$lastmod}}</th>
</tr> </tr>
<tr><td colspan="8"><hr></td></tr> <tr><td colspan="8"><hr></td></tr>
{{if $parentpath}} {{if $parentpath}}
<tr> <tr>
<td>{{$parentpath.icon}}</td> <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></td><td></td><th></td>
<td>[{{t('parent')}}]</td> <td>[{{$parent}}]</td>
<td></td> <td></td>
<td></td> <td></td>
</tr> </tr>
@ -25,8 +25,8 @@
<td style="min-width: 15em"><a href="{{$item.fullPath}}">{{$item.displayName}}</a></td> <td style="min-width: 15em"><a href="{{$item.fullPath}}">{{$item.displayName}}</a></td>
{{if $item.is_owner}} {{if $item.is_owner}}
<td>{{$item.attachIcon}}</td> <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 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="{{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><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}} {{else}}
<td></td><td></td><td></td> <td></td><td></td><td></td>
{{/if}} {{/if}}
@ -39,5 +39,5 @@
</table> </table>
{{if $quota.limit || $quota.used}} {{if $quota.limit || $quota.used}}
<p><strong>{{t('Total')}}</strong> {{$quota.desc}}</p> <p><strong>{{$total}}</strong> {{$quota.desc}}</p>
{{/if}} {{/if}}