From a89da62db88611c141f123887d0197ca19c32407 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 26 Sep 2024 20:29:08 +0200 Subject: Figure out the templates automatically --- src/templates/-404.html.tmpl | 16 +++ src/templates/-base.html.tmpl | 42 ++++++++ src/templates/-error.html.tmpl | 23 ++++ src/templates/-navbar.html.tmpl | 228 ++++++++++++++++++++++++++++++++++++++++ src/templates/404.html.tmpl | 16 --- src/templates/base.html.tmpl | 42 -------- src/templates/error.html.tmpl | 23 ---- src/templates/navbar.html.tmpl | 228 ---------------------------------------- 8 files changed, 309 insertions(+), 309 deletions(-) create mode 100644 src/templates/-404.html.tmpl create mode 100644 src/templates/-base.html.tmpl create mode 100644 src/templates/-error.html.tmpl create mode 100644 src/templates/-navbar.html.tmpl delete mode 100644 src/templates/404.html.tmpl delete mode 100644 src/templates/base.html.tmpl delete mode 100644 src/templates/error.html.tmpl delete mode 100644 src/templates/navbar.html.tmpl (limited to 'src/templates') diff --git a/src/templates/-404.html.tmpl b/src/templates/-404.html.tmpl new file mode 100644 index 0000000..c86dc30 --- /dev/null +++ b/src/templates/-404.html.tmpl @@ -0,0 +1,16 @@ +{{ define "content" }} +
+ {{ template "navbar" . }} +

{{ .T "Page Not Found" }}

+
+
+

+ {{ .T ` + The page you were looking for does not exist. If you believe this + is a mistake then don’t hesitate to contact @onetruemangoman on + Discord or email us at %s.` + `mail@euro-cash.eu` | safe + }} +

+
+{{ end }} diff --git a/src/templates/-base.html.tmpl b/src/templates/-base.html.tmpl new file mode 100644 index 0000000..2a33cc3 --- /dev/null +++ b/src/templates/-base.html.tmpl @@ -0,0 +1,42 @@ + + + + + + + {{ .T "Euro Cash" }} + + + + {{ template "content" . }} + + + diff --git a/src/templates/-error.html.tmpl b/src/templates/-error.html.tmpl new file mode 100644 index 0000000..47bff81 --- /dev/null +++ b/src/templates/-error.html.tmpl @@ -0,0 +1,23 @@ +{{ define "content" }} +
+ {{ template "navbar" . }} +

{{ .Code }} {{ .Msg }}

+
+
+

+ {{ .T ` + If you’re seeing this page, it means that something went wrong on + our end that we need to fix. Our team has been notified of this + error, and we apologise for the inconvenience. + ` }} +

+

+ {{ .T ` + If this issue persists, don’t hesitate to contact @onetruemangoman + on Discord or to email us at %s.` + `` | safe + }} +

+
+{{ end }} diff --git a/src/templates/-navbar.html.tmpl b/src/templates/-navbar.html.tmpl new file mode 100644 index 0000000..90f3cc7 --- /dev/null +++ b/src/templates/-navbar.html.tmpl @@ -0,0 +1,228 @@ +{{ define "navbar" }} + +{{ end }} diff --git a/src/templates/404.html.tmpl b/src/templates/404.html.tmpl deleted file mode 100644 index c86dc30..0000000 --- a/src/templates/404.html.tmpl +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "content" }} -
- {{ template "navbar" . }} -

{{ .T "Page Not Found" }}

-
-
-

- {{ .T ` - The page you were looking for does not exist. If you believe this - is a mistake then don’t hesitate to contact @onetruemangoman on - Discord or email us at %s.` - `mail@euro-cash.eu` | safe - }} -

-
-{{ end }} diff --git a/src/templates/base.html.tmpl b/src/templates/base.html.tmpl deleted file mode 100644 index 2a33cc3..0000000 --- a/src/templates/base.html.tmpl +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - {{ .T "Euro Cash" }} - - - - {{ template "content" . }} - - - diff --git a/src/templates/error.html.tmpl b/src/templates/error.html.tmpl deleted file mode 100644 index 47bff81..0000000 --- a/src/templates/error.html.tmpl +++ /dev/null @@ -1,23 +0,0 @@ -{{ define "content" }} -
- {{ template "navbar" . }} -

{{ .Code }} {{ .Msg }}

-
-
-

- {{ .T ` - If you’re seeing this page, it means that something went wrong on - our end that we need to fix. Our team has been notified of this - error, and we apologise for the inconvenience. - ` }} -

-

- {{ .T ` - If this issue persists, don’t hesitate to contact @onetruemangoman - on Discord or to email us at %s.` - `` | safe - }} -

-
-{{ end }} diff --git a/src/templates/navbar.html.tmpl b/src/templates/navbar.html.tmpl deleted file mode 100644 index 90f3cc7..0000000 --- a/src/templates/navbar.html.tmpl +++ /dev/null @@ -1,228 +0,0 @@ -{{ define "navbar" }} - -{{ end }} -- cgit v1.2.3