From b78354aee2f0fef8552896d75e106c915365d3ef Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Wed, 1 Feb 2023 23:01:36 -0700 Subject: tree: directories first, add size column, fix .. Signed-off-by: Derek Stevens --- templates/tree.html | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'templates/tree.html') diff --git a/templates/tree.html b/templates/tree.html index 2880714..496dceb 100644 --- a/templates/tree.html +++ b/templates/tree.html @@ -18,26 +18,35 @@
{{ if $parent }}
-
..
+
+
..
{{ end }} {{ range .files }} + {{ if not .IsFile }}
{{ .Mode }}
+
{{ .Size }}
- {{ if .IsFile }} - {{ if $parent }} - {{ .Name }} - {{ else }} - {{ .Name }} - {{ end }} - {{ else }} {{ if $parent }} {{ .Name }}/ {{ else }} {{ .Name }}/ {{ end }} +
{{ end }} + {{ end }} + {{ range .files }} + {{ if .IsFile }} +
{{ .Mode }}
+
{{ .Size }}
+
+ {{ if $parent }} + {{ .Name }} + {{ else }} + {{ .Name }} + {{ end }}
{{ end }} + {{ end }}
-- 
cgit