From fd8f3720fb2270b417d23ae7f6ea529ee4b5f5ad Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 10 Jun 2024 18:46:47 +0100 Subject: [PATCH] Removed the script from the login template --- src/assets/htmx/login.html | 68 +------------------------------------- src/views/loginPage.go | 4 +-- 2 files changed, 2 insertions(+), 70 deletions(-) diff --git a/src/assets/htmx/login.html b/src/assets/htmx/login.html index bfc86de..89784c2 100644 --- a/src/assets/htmx/login.html +++ b/src/assets/htmx/login.html @@ -15,70 +15,4 @@ - - -{{ if .script }} - -{{ end }} \ No newline at end of file + \ No newline at end of file diff --git a/src/views/loginPage.go b/src/views/loginPage.go index e238d4b..ec83c91 100644 --- a/src/views/loginPage.go +++ b/src/views/loginPage.go @@ -5,9 +5,7 @@ import "net/http" func LoginPage(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) - loginTemplate := HtmlTemplate("./assets/htmx/login.html", map[string]interface{}{ - "script": true, - }) + loginTemplate := HtmlTemplate("./assets/htmx/login.html", nil) loginPage := HtmlTemplate("./assets/htmx/terminal.html", map[string]interface{}{ "content": loginTemplate,