From bbcbf180adf5f5e0e6d89d4f5630936128cf508b Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 19 Feb 2024 12:19:56 -0700 Subject: templates: format last modified and size values, CSS --- templates/index.html | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index 691de8e..409368b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,42 +1,50 @@ - -

Index of {{ .Path }}

- - +
+
+ {{- range $f := .Contents -}} - - + + {{- end -}} {{- range $f := .CommonPrefixes -}} + + {{- end -}}
Name Last Modified Size
Parent Directory--
{{- $f.Key -}}{{- $f.LastModified -}}{{- $f.Size -}}{{- formatLastModified $f.LastModified -}}{{- prettyByteSize $f.Size -}}
{{- $f.Prefix -}}--
+ + -- cgit v1.2.3-54-g00ecf