aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-01-13 10:40:11 +0100
committerJulian Hurst <ark@mansus.space>2023-01-13 10:40:11 +0100
commitc3de52dff91b81cfd07e00fb7fc6dd701bf8b7d7 (patch)
tree4bf902ee59146a29bc6f60b33af0a4b9aea449c2 /templates
parent05a30c5ad503ff2bc25cf6f83f9054100f644eeb (diff)
downloaddocspace-c3de52dff91b81cfd07e00fb7fc6dd701bf8b7d7.tar.gz
Add size and modtime to docs and redirect to login page by default
Diffstat (limited to 'templates')
-rw-r--r--templates/user.html27
1 files changed, 22 insertions, 5 deletions
diff --git a/templates/user.html b/templates/user.html
index 7cb0d11..5e0aa57 100644
--- a/templates/user.html
+++ b/templates/user.html
@@ -7,12 +7,29 @@
<input type="file" name="files" multiple />
<input type="submit" value="Upload" />
</form>
- <ul>
+ <table>
+ <tr>
+ <th></th>
+ <th>Nom du fichier</th>
+ <th>Date de modification</th>
+ <th>Taille</th>
+ </tr>
{{range .Docs}}
- <li>
- <a href="{{.Link}}">{{.Name}}</a>
- </li>
+ <tr>
+ <td>
+ <input type="checkbox">
+ </td>
+ <td>
+ <a href="{{.Link}}">{{.Name}}</a>
+ </td>
+ <td>
+ {{.ModTime}}
+ </td>
+ <td>
+ {{.Size}}
+ </td>
+ </tr>
{{end}}
- </ul>
+ </table>
</div>
{{end}}