From 5e44921362ac305c987a061fe71dd0b1b5f93fed Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 15 Mar 2020 21:32:02 +0100 Subject: index --- hosted/tmpl/index.html | 289 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 hosted/tmpl/index.html (limited to 'hosted/tmpl/index.html') diff --git a/hosted/tmpl/index.html b/hosted/tmpl/index.html new file mode 100644 index 0000000..ba9471c --- /dev/null +++ b/hosted/tmpl/index.html @@ -0,0 +1,289 @@ +{{ define "index" }} + + + + + {{html .Name}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ {{range $i, $crumb := .Breadcrumbs}}{{html $crumb.Text}}/{{end}} +

+
+
+
+
+ {{.NumDirs}} director{{if eq 1 .NumDirs}}y + {{else}}ies{{end}} + {{.NumFiles}} file{{if ne 1 .NumFiles}}s{{end}} + +
+
+
+ + + + + + + + + + + + {{- if .CanGoUp}} + + + + + + + + {{- end}} + {{- range $i, $item := .Items}} + + + + {{- if $item.IsDir}} + + {{- else}} + + {{- end}} + + + + {{- end}} + +
+ {{- if and (eq .Sort "namedirfirst") (ne .Order "desc")}} + + + + {{- else if and (eq .Sort "namedirfirst") (ne .Order "asc")}} + + + + {{- else}} + + + + + + {{- end}} + + {{- if and (eq .Sort "name") (ne .Order "desc")}} + Name + + + + {{- else if and (eq .Sort "name") (ne .Order "asc")}} + Name + + + + {{- else}} + Name + {{- end}} + + {{- if and (eq .Sort "size") (ne .Order "desc")}} + Size + + + + {{- else if and (eq .Sort "size") (ne .Order "asc")}} + Size + + + + {{- else}} + Size + {{- end}} + + {{- if and (eq .Sort "time") (ne .Order "desc")}} + Modified + + + + {{- else if and (eq .Sort "time") (ne .Order "asc")}} + Modified + + + + {{- else}} + Modified + {{- end}} +
+ + Go up + +
+ + {{- if $item.IsDir}} + + + + {{- else}} + + + + {{- end}} + {{html $item.Name}} + + {{$item.HumanSize}} +
+
+
+ + + + + + +{{ end }} \ No newline at end of file -- cgit 1.4.1