From 856f66808b913baff13c815daec3cdde7121e3bd Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Sun, 11 Dec 2022 11:22:47 +0530 Subject: all: init --- templates/404.html | 7 +++++++ templates/500.html | 7 +++++++ templates/head.html | 7 +++++++ templates/nav.html | 9 +++++++++ templates/repo.html | 22 ++++++++++++++++++++++ 5 files changed, 52 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/500.html create mode 100644 templates/head.html create mode 100644 templates/nav.html create mode 100644 templates/repo.html (limited to 'templates') diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..c3825f4 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,7 @@ + + 404 +{{ template "header" . }} + + 404 — nothing like that here + + diff --git a/templates/500.html b/templates/500.html new file mode 100644 index 0000000..919f26c --- /dev/null +++ b/templates/500.html @@ -0,0 +1,7 @@ + + 500 +{{ template "header" . }} + + 500 — something broke! + + diff --git a/templates/head.html b/templates/head.html new file mode 100644 index 0000000..3739342 --- /dev/null +++ b/templates/head.html @@ -0,0 +1,7 @@ +{{ define "head" }} + + + + + +{{ end }} diff --git a/templates/nav.html b/templates/nav.html new file mode 100644 index 0000000..7568f01 --- /dev/null +++ b/templates/nav.html @@ -0,0 +1,9 @@ +{{ define "nav" }} + +{{ end }} diff --git a/templates/repo.html b/templates/repo.html new file mode 100644 index 0000000..e388de3 --- /dev/null +++ b/templates/repo.html @@ -0,0 +1,22 @@ +{{ define "repo" }} + +{{ template "head" . }} + +
+

{{ .meta.Title }}

+

{{ .meta.Description }}

+
+ + {{ template "nav" . }} +
+ {{ range .files }} + {{ if .IsFile }} +

{{ .Mode }} {{ .Name }} {{ .Size }}

+ {{ else }} +

d-------- {{ .Name}}/

+ {{ end }} + {{ end }} +
+ + +{{ end }} -- cgit