aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-11-08 13:30:39 +0100
committerJulius Härtl <jus@bitgrid.net>2018-11-16 14:12:41 +0100
commit3e11337b3b4c36df20d5565d60d05995b0314363 (patch)
tree560eb9976da313fa391c83ad62a52d2e52b2bffc /core/templates
parent09efdfb4e640a748d9f7af1d120a4315028d969a (diff)
downloadnextcloud-server-3e11337b3b4c36df20d5565d60d05995b0314363.tar.gz
nextcloud-server-3e11337b3b4c36df20d5565d60d05995b0314363.zip
Allow sorting in the file picker
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/filepicker.html42
1 files changed, 32 insertions, 10 deletions
diff --git a/core/templates/filepicker.html b/core/templates/filepicker.html
index 4c66dfc707b..090e6bce773 100644
--- a/core/templates/filepicker.html
+++ b/core/templates/filepicker.html
@@ -8,17 +8,39 @@
<h2>{emptytext}</h2>
</div>
<table id="filestable" class="filelist list-container view-grid">
+ <thead>
+ <tr>
+ <th id="headerName" class="column-name">
+ <div id="headerName-container">
+ <a class="name sort columntitle" data-sort="name">
+ <span>Name</span>
+ <span class="sort-indicator hidden icon-triangle-n"></span>
+ </a>
+ </div>
+ </th>
+ <th id="headerSize" class="column-size">
+ <a class="size sort columntitle" data-sort="size">
+ <span>Size</span>
+ <span class="sort-indicator hidden icon-triangle-n"></span></a>
+ </th>
+ <th id="headerDate" class="column-mtime">
+ <a id="modified" class="columntitle" data-sort="mtime">
+ <span>Modified</span>
+ <span class="sort-indicator hidden icon-triangle-n"></span></a>
+ </th>
+ </tr>
+ </thead>
<tbody>
- <tr data-entryname="{filename}" data-type="{type}">
- <td class="filename"
- style="background-image:url({icon})">{filename}
- </td>
- <td class="filesize"
- style="color:rgb({sizeColor}, {sizeColor}, {sizeColor})">
- {size}
- </td>
- <td class="date">{date}</td>
- </tr>
+ <tr data-entryname="{filename}" data-type="{type}">
+ <td class="filename"
+ style="background-image:url({icon})">{filename}
+ </td>
+ <td class="filesize"
+ style="color:rgb({sizeColor}, {sizeColor}, {sizeColor})">
+ {size}
+ </td>
+ <td class="date">{date}</td>
+ </tr>
</tbody>
</table>
</div>