From f13a07aa433298de91e1c4aff68f72be6d851be2 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Mon, 6 Jun 2022 02:49:05 +0200 Subject: Initial commit --- templates/_footer.tmpl | 13 +++++++++++++ templates/_head.tmpl | 18 ++++++++++++++++++ templates/entry.tmpl | 24 ++++++++++++++++++++++++ templates/index.tmpl | 28 ++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 templates/_footer.tmpl create mode 100644 templates/_head.tmpl create mode 100644 templates/entry.tmpl create mode 100644 templates/index.tmpl (limited to 'templates') diff --git a/templates/_footer.tmpl b/templates/_footer.tmpl new file mode 100644 index 0000000..543a2e6 --- /dev/null +++ b/templates/_footer.tmpl @@ -0,0 +1,13 @@ +{{ define "_footer" }} + + + + +{{ end }} diff --git a/templates/_head.tmpl b/templates/_head.tmpl new file mode 100644 index 0000000..da96a57 --- /dev/null +++ b/templates/_head.tmpl @@ -0,0 +1,18 @@ +{{ define "_head" }} + + + + + + +
+ +
+
+{{ end }} diff --git a/templates/entry.tmpl b/templates/entry.tmpl new file mode 100644 index 0000000..dc5f2b6 --- /dev/null +++ b/templates/entry.tmpl @@ -0,0 +1,24 @@ +{{ define "entry" }} +{{ template "_head" }} +{{ if (eq .ID 0) }} +
+{{ else }} + +{{ end }} + + + + + +
+{{ template "_footer" }} +{{ end }} diff --git a/templates/index.tmpl b/templates/index.tmpl new file mode 100644 index 0000000..a392761 --- /dev/null +++ b/templates/index.tmpl @@ -0,0 +1,28 @@ +{{ define "index" }} +{{ template "_head" }} + + + + + + + + + + + {{ range . }} + + + + + + + {{ end }} + +
IDTitleOutput
{{ .ID }}{{ .Link }}{{ .Output_folder }} + Edit + Delete +
+Create +{{ template "_footer" }} +{{ end }} -- cgit v1.2.3