summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/index.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-04-03 20:57:06 +0200
committerVincent Petry <pvince81@owncloud.com>2014-04-28 17:42:04 +0200
commit688f6162daeec724c537f9c283092f45b29b05f2 (patch)
tree27fd75f137b773b886a5d9a0d4511ff136008133 /apps/files/templates/index.php
parente055a411ea4b2a32dcf20c910d332867dc91f516 (diff)
downloadnextcloud-server-688f6162daeec724c537f9c283092f45b29b05f2.tar.gz
nextcloud-server-688f6162daeec724c537f9c283092f45b29b05f2.zip
Add sorting to files list, trashbin and public files
Diffstat (limited to 'apps/files/templates/index.php')
-rw-r--r--apps/files/templates/index.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index 42263c880a7..822aee0ed45 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -60,11 +60,11 @@
<table id="filestable" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>" data-preview-x="36" data-preview-y="36">
<thead>
<tr>
- <th class="hidden" id='headerName'>
+ <th id='headerName' class="hidden column-name">
<div id="headerName-container">
<input type="checkbox" id="select_all" />
<label for="select_all"></label>
- <span class="name"><?php p($l->t( 'Name' )); ?></span>
+ <a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a>
<span id="selectedActionsList" class="selectedActions">
<?php if($_['allowZipDownload']) : ?>
<a href="" class="download">
@@ -76,9 +76,11 @@
</span>
</div>
</th>
- <th class="hidden" id="headerSize"><?php p($l->t('Size')); ?></th>
- <th class="hidden" id="headerDate">
- <span id="modified"><?php p($l->t( 'Modified' )); ?></span>
+ <th id="headerSize" class="hidden column-size">
+ <a class="size sort columntitle" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a>
+ </th>
+ <th id="headerDate" class="hidden column-mtime">
+ <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Modified' )); ?></span><span class="sort-indicator"></span></a>
<?php if ($_['permissions'] & OCP\PERMISSION_DELETE): ?>
<span class="selectedActions"><a href="" class="delete-selected">
<?php p($l->t('Delete'))?>