aboutsummaryrefslogtreecommitdiff
path: root/templates/fs.html
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-02-26 19:54:48 +0100
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2023-06-18 16:30:36 +0200
commitc8e1328164e9ffbd681c3c0e449f1e6b9856b896 (patch)
treefaee639a4c55c5dc3bfc59a5400026822c40221d /templates/fs.html
downloadlens-c8e1328164e9ffbd681c3c0e449f1e6b9856b896.tar.gz
lens-c8e1328164e9ffbd681c3c0e449f1e6b9856b896.tar.bz2
lens-c8e1328164e9ffbd681c3c0e449f1e6b9856b896.zip
feat: Inicial commit
It contains rough template for the server and runners. It contains rough template for the server and runners.
Diffstat (limited to 'templates/fs.html')
-rw-r--r--templates/fs.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/fs.html b/templates/fs.html
new file mode 100644
index 0000000..608289d
--- /dev/null
+++ b/templates/fs.html
@@ -0,0 +1,29 @@
+{{template "layout.html" .}}
+{{define "title"}} {{.Title}} {{end}}
+{{define "content"}}
+<div class="panel">
+ <div class="panel-block">
+ <div class="columns file-row is-gapless is-mobile">
+ <div id="path" class="container-fluid">
+ <small>{{range .Data.Page.History}}<a href="/fs?path={{.UrlEncodedPath}}" >{{.Name}}/</a>{{end}}</small>
+ </div>
+ </div>
+ </div>
+ {{range .Data.Page.Files}}
+ <div class="panel-block">
+ <div class="columns file-row is-gapless is-mobile">
+ <div class="column">
+ {{if $.Data.ShowMode}}{{.Info.Mode}}&emsp;{{end}}
+ {{if $.Data.ShowOwner}}{{.Info.Sys.Gid}}:{{.Info.Sys.Uid}}&emsp;{{end}}
+ {{if .Info.IsDir}}
+ <a href="/?path={{.UrlEncodedPath}}">{{.Info.Name}}/</a>
+ {{else}}
+ {{.Info.Name}}
+ {{end}}
+ </div>
+ <div class="column has-text-right">{{.Info.Size}} B</div>
+ </div>
+ </div>
+ {{end}}
+</div>
+{{end}}