diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-01-22 12:00:04 +0100 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-01-22 15:33:54 +0100 |
commit | 81ab0affef47c99239e7bff77e5964788a61aa2a (patch) | |
tree | d126b7213459a3c837ad45db43c5c76e36c90ccf /apps/files_trashbin/templates/part.list.php | |
parent | 1817c7895b3db5643d255ba54cf062c3f90885ed (diff) | |
download | nextcloud-server-81ab0affef47c99239e7bff77e5964788a61aa2a.tar.gz nextcloud-server-81ab0affef47c99239e7bff77e5964788a61aa2a.zip |
allow to restore single files/folder from a deleted folder
Diffstat (limited to 'apps/files_trashbin/templates/part.list.php')
-rw-r--r-- | apps/files_trashbin/templates/part.list.php | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/apps/files_trashbin/templates/part.list.php b/apps/files_trashbin/templates/part.list.php index 72359da299c..6faddcf4856 100644 --- a/apps/files_trashbin/templates/part.list.php +++ b/apps/files_trashbin/templates/part.list.php @@ -24,13 +24,21 @@ $name = str_replace('%2F', '/', $name); $directory = str_replace('+', '%20', urlencode($file['directory'])); $directory = str_replace('%2F', '/', $directory); ?> - <tr id="<?php echo $file['name'].'.d'.$file['timestamp'];?>" - data-file="<?php echo $file['name'].'.d'.$file['timestamp'];?>" - data-filename="<?php echo $file['name'];?>" + <tr data-filename="<?php echo $file['name'];?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mimetype']?>" + data-permissions='<?php echo $file['permissions']; ?>' + <?php if ( $_['dirlisting'] ): ?> + id="<?php echo $file['directory'].'/'.$file['name'];?>" + data-file="<?php echo $file['directory'].'/'.$file['name'];?>" + data-timestamp='' + data-dirlisting=1 + <?php else: ?> + id="<?php echo $file['name'].'.d'.$file['timestamp'];?>" + data-file="<?php echo $file['name'].'.d'.$file['timestamp'];?>" data-timestamp='<?php echo $file['timestamp'];?>' - data-permissions='<?php echo $file['permissions']; ?>'> + data-dirlisting=0 + <?php endif; ?>> <td class="filename svg" <?php if($file['type'] == 'dir'): ?> style="background-image:url(<?php echo OCP\mimetype_icon('dir'); ?>)" |