From 6a16bbdcdb40406592e47ee8d489f857837e5c96 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Thu, 21 Nov 2024 13:54:38 +0530 Subject: Initial commit --- src/templates/viewDir.html | 106 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 src/templates/viewDir.html (limited to 'src/templates/viewDir.html') diff --git a/src/templates/viewDir.html b/src/templates/viewDir.html new file mode 100644 index 0000000..9d45242 --- /dev/null +++ b/src/templates/viewDir.html @@ -0,0 +1,106 @@ +{{ define "main" }} +{{ $location := .File.URI }} +{{ $path := .File.Path }} +
+ +
+

{{ .File.HTMLPath }}

+
+ + + + + + + +
+ + + + +
+
+ + {{ if .CutCount }} +
+ + Files in Cut Buffer ({{ .CutCount }}) + + + + + +
+ {{ range .CutBuffer }}
{{ . }}
{{ end }} +
+
+ {{ end }} + + {{ if .CopyCount }} +
+ + Files in Copy Buffer ({{ .CopyCount }}) + + + + + +
+ {{ range .CopyBuffer }}
{{ . }}
{{ end }} +
+
+ {{ end }} +
+ +
+
+ +
+
+ {{ range .File.Data }} + {{ $name := .Info.Name }} + + {{ end }} +
+
+ + {{ if .FileCount }} +

Hint: aestrik (*) indicates mime-type (media type) of file in Info section.

+ {{ else }} +

Empty Folder

+ {{ end }} +
+ +
+ + +
+
+

Create New Folder

+

+ + +

+
+
+{{ end }} -- cgit v1.2.3