From c8e1328164e9ffbd681c3c0e449f1e6b9856b896 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sun, 26 Feb 2023 19:54:48 +0100 Subject: feat: Inicial commit It contains rough template for the server and runners. It contains rough template for the server and runners. --- templates/error.html | 5 +++++ templates/fs.html | 29 +++++++++++++++++++++++++++++ templates/layout.html | 29 +++++++++++++++++++++++++++++ templates/login.html | 24 ++++++++++++++++++++++++ templates/media.html | 18 ++++++++++++++++++ templates/settings.html | 25 +++++++++++++++++++++++++ 6 files changed, 130 insertions(+) create mode 100644 templates/error.html create mode 100644 templates/fs.html create mode 100644 templates/layout.html create mode 100644 templates/login.html create mode 100644 templates/media.html create mode 100644 templates/settings.html (limited to 'templates') diff --git a/templates/error.html b/templates/error.html new file mode 100644 index 0000000..cbde400 --- /dev/null +++ b/templates/error.html @@ -0,0 +1,5 @@ +{{template "layout.html" .}} +{{define "title"}} Not Found {{end}} +{{define "content"}} +{{.}} +{{end}} 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"}} +
+
+
+
+ {{range .Data.Page.History}}{{.Name}}/{{end}} +
+
+
+ {{range .Data.Page.Files}} +
+
+
+ {{if $.Data.ShowMode}}{{.Info.Mode}} {{end}} + {{if $.Data.ShowOwner}}{{.Info.Sys.Gid}}:{{.Info.Sys.Uid}} {{end}} + {{if .Info.IsDir}} + {{.Info.Name}}/ + {{else}} + {{.Info.Name}} + {{end}} +
+
{{.Info.Size}} B
+
+
+ {{end}} +
+{{end}} diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..56d02f8 --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,29 @@ + + + + + img | {{block "title" .}} noop {{end}} + + + + + + +
+ {{block "content" .}}noop{{end}} +
+ + {{block "script" .}}{{end}} + diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..f71d9d3 --- /dev/null +++ b/templates/login.html @@ -0,0 +1,24 @@ +{{template "layout.html" .}} +{{define "title"}} Register {{end}} +{{define "content"}} +
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+
+{{end}} diff --git a/templates/media.html b/templates/media.html new file mode 100644 index 0000000..478d8ae --- /dev/null +++ b/templates/media.html @@ -0,0 +1,18 @@ +{{template "layout.html" .}} +{{define "title"}} {{.Title}} {{end}} +{{define "content"}} +
+{{range .Data.Medias}} +
+
+
+ +
+
+
+{{end}} +
+
+ next +
+{{end}} diff --git a/templates/settings.html b/templates/settings.html new file mode 100644 index 0000000..f8423fc --- /dev/null +++ b/templates/settings.html @@ -0,0 +1,25 @@ +{{template "layout.html" .}} +{{define "title"}} {{.Title}} {{end}} +{{define "content"}} +
+
+
+ +
+
+
+
+ +
+
+
+ +
+
+{{end}} -- cgit v1.2.3