0be9de5df5
Files app: - removed file list template, now rendering list from JSON response - FileList.addFile/addDir is now FileList.add() and takes a JS map with all required arguments instead of having a long number of function arguments - added unit tests for many FileList operations - fixed newfile.php, newfolder.php and rename.php to return the file's full JSON on success - removed obsolete/unused undo code - removed download_url / loading options, now using Files.getDownloadUrl() for that - server side now uses Helper::getFileInfo() to prepare file JSON response - previews are now client-side only Breadcrumbs are now JS only: - Added BreadCrumb class to handle breadcrumb rendering and events - Added unit test for BreadCrumb class - Moved all relevant JS functions to the BreadCrumb class Public page now uses ajax to load the file list: - Added Helper class in sharing app to make it easier to authenticate and retrieve the file's real path - Added ajax/list.php to retrieve the file list - Fixed FileActions and FileList to work with the ajax list Core: - Fixed file picker dialog to use the same list format as files app
42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<div id="controls">
|
|
<div id="file_action_panel"></div>
|
|
</div>
|
|
<div id='notification'></div>
|
|
|
|
<div id="emptycontent" class="hidden"><?php p($l->t('Nothing in here. Your trash bin is empty!'))?></div>
|
|
|
|
<input type="hidden" id="permissions" value="0"></input>
|
|
<input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir">
|
|
|
|
<table id="filestable">
|
|
<thead>
|
|
<tr>
|
|
<th id='headerName'>
|
|
<div id="headerName-container">
|
|
<input type="checkbox" id="select_all" />
|
|
<label for="select_all"></label>
|
|
<span class='name'><?php p($l->t( 'Name' )); ?></span>
|
|
<span class='selectedActions'>
|
|
<a href="" class="undelete">
|
|
<img class="svg" alt="<?php p($l->t( 'Restore' )); ?>"
|
|
src="<?php print_unescaped(OCP\image_path("core", "actions/history.svg")); ?>" />
|
|
<?php p($l->t('Restore'))?>
|
|
</a>
|
|
</span>
|
|
</div>
|
|
</th>
|
|
<th id="headerDate">
|
|
<span id="modified"><?php p($l->t( 'Deleted' )); ?></span>
|
|
<span class="selectedActions">
|
|
<a href="" class="delete">
|
|
<?php p($l->t('Delete'))?>
|
|
<img class="svg" alt="<?php p($l->t('Delete'))?>"
|
|
src="<?php print_unescaped(OCP\image_path("core", "actions/delete.svg")); ?>" />
|
|
</a>
|
|
</span>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="fileList">
|
|
</tbody>
|
|
</table>
|