diff --git a/handlers/main_handler.go b/handlers/main_handler.go index ad74291..7f25b6a 100644 --- a/handlers/main_handler.go +++ b/handlers/main_handler.go @@ -12,7 +12,7 @@ import ( func MainHandler(content embed.FS, monsters *[]model.Monster) http.HandlerFunc { log.Print("MainHandler called") return func(w http.ResponseWriter, r *http.Request) { - tmpl, err := template.ParseFS(content, "templates/main.html", "templates/monsterForm.html", "templates/monster.html", "templates/monsterTable.html") + tmpl, err := template.ParseFS(content, "templates/main.html", "templates/monsterForm.html", "templates/monster.html", "templates/monsterTable.html", "templates/base.html") if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return diff --git a/handlers/submit_handler.go b/handlers/submit_handler.go index f6987ba..02a6fde 100644 --- a/handlers/submit_handler.go +++ b/handlers/submit_handler.go @@ -46,7 +46,6 @@ func SubmitHandler(content embed.FS, chars *[]model.Character, Monsters *[]model return } - log.Printf("Monster hinzugefügt. Anzahl der Monster jetzt: %d\n", len(*Monsters)) // JSON-Daten in die Datei schreiben err = model.WriteToFile(filename, charJSON) if err != nil { diff --git a/templates/header.html b/templates/header.html index 755b7ae..0efea19 100644 --- a/templates/header.html +++ b/templates/header.html @@ -38,14 +38,17 @@
-
+
Dungeons-and-Dragons-Banner
-

- Dungeons and Dragons Monster Generator -

+
+

+ Dungeons and Dragons Monster Generator +

+
diff --git a/templates/main.html b/templates/main.html index 56e8175..eb95065 100644 --- a/templates/main.html +++ b/templates/main.html @@ -6,7 +6,7 @@

Monster Form

-
+