aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views
diff options
context:
space:
mode:
authorMarvin Borner2019-04-14 17:55:38 +0200
committerMarvin Borner2019-04-14 17:55:38 +0200
commit8c6905d0553b88b1257cab13355873d5438704fa (patch)
tree7e80cc38d7dcff6841c673ba716bd3c742fd7694 /src/main/resources/views
parenta12e7139a8df8303c9fef79f3f20a170ea0af278 (diff)
Added table for file list view
Diffstat (limited to 'src/main/resources/views')
-rw-r--r--src/main/resources/views/files.rocker.html32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/main/resources/views/files.rocker.html b/src/main/resources/views/files.rocker.html
index f9852f8..2c4a7ff 100644
--- a/src/main/resources/views/files.rocker.html
+++ b/src/main/resources/views/files.rocker.html
@@ -12,12 +12,30 @@
@layout.template(files.size() + " Files", css, js) -> {
<div class="drop" id="drop">
- <h1>/@path</h1>
- <a class="filename" href="../">../</a><br>
- <hr>
- @for (String file : files) {
- <a class="filename" href="@file">@file</a><br>
- <hr>
- }
+ <h2>/@path</h2>
+ <table id="table">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Size</th>
+ <th>Last modified</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <tr>
+ <td><a class="filename" href="../">../</a></td>
+ <td><a class="filename" href="../"></a></td>
+ <td><a class="filename" href="../"></a></td>
+ </tr>
+ @for (String[] fileArray : files) {
+ <tr>
+ <td><a class="filename" href="@fileArray[0]">@fileArray[0]</a></td>
+ <td><a class="filename" href="@fileArray[0]">@fileArray[1]</a></td>
+ <td><a class="filename" href="@fileArray[0]">@fileArray[2]</a></td>
+ </tr>
+ }
+ </tbody>
+ </table>
</div>
}