aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views/files.rocker.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/views/files.rocker.html')
-rw-r--r--src/main/resources/views/files.rocker.html28
1 files changed, 10 insertions, 18 deletions
diff --git a/src/main/resources/views/files.rocker.html b/src/main/resources/views/files.rocker.html
index 02f32af..bb01259 100644
--- a/src/main/resources/views/files.rocker.html
+++ b/src/main/resources/views/files.rocker.html
@@ -17,42 +17,34 @@
<table id="table">
<thead>
<tr>
- <th>Name</th>
- <th>Size</th>
- <th>Last modified</th>
- <th>Delete</th>
+ <th data-asc="true">Name</th>
+ <th data-asc="true">Size</th>
+ <th data-asc="true">Last modified</th>
+ <th data-asc="true">Delete</th>
</tr>
- </thead>
-
- <tbody>
<tr data-href="../">
<td>../</td>
<td></td>
<td></td>
<td></td>
</tr>
+ </thead>
+ <tbody>
@for (String[] fileArray : files) {
@if (fileArray[3] == "true") {
<tr data-href="@fileArray[0]">
- <td>@fileArray[0]</td>
- <td>@fileArray[1]</td>
- <td>@fileArray[2]</td>
- <td>
- <button class="delete"><i class="icon ion-md-trash"></i></button>
- </td>
- </tr>
- } else {
+ } else {
<tr data-path="@fileArray[0]">
+ }
<td>@fileArray[0]</td>
- <td>@fileArray[1]</td>
- <td>@fileArray[2]</td>
+ <td data-size="@fileArray[4]">@fileArray[1]</td>
+ <td data-date="@fileArray[5]">@fileArray[2]</td>
<td>
<button class="delete"><i class="icon ion-md-trash"></i></button>
</td>
</tr>
}
- }
</tbody>
</table>
</div>