diff --git a/backend/internal/api/journal.go b/backend/internal/api/journal.go index d869651..e46a137 100644 --- a/backend/internal/api/journal.go +++ b/backend/internal/api/journal.go @@ -44,7 +44,7 @@ func (h *JournalHandler) HandleGetEditEntry(w http.ResponseWriter, r *http.Reque http.Error(w, "Eintrag nicht gefunden", http.StatusNotFound) return } - render(w, "edit_entry.html", map[string]any{"Entry": entry}) + render(w, r, "edit_entry.html", map[string]any{"Entry": entry}) } // HandleUpdateEntry handles POST /entries/{id} (multipart/form-data). diff --git a/backend/internal/api/static/style.css b/backend/internal/api/static/style.css index f6a7333..2e4fa41 100644 --- a/backend/internal/api/static/style.css +++ b/backend/internal/api/static/style.css @@ -13,6 +13,13 @@ --pico-primary-underline: rgba(0,0,0,.5); } +/* Site nav */ +.site-nav { display: flex; gap: 1.5rem; align-items: baseline; padding: .7rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--pico-muted-border-color); } +.site-nav a { font-size: .85rem; text-decoration: none; } +.site-nav a:hover { text-decoration: underline; } +.nav-btn { background: none; border: none; color: var(--pico-primary); padding: 0; cursor: pointer; font-family: inherit; font-size: .85rem; margin: 0; } +.site-nav form { margin: 0; padding: 0; } + h1 { font-size: 1.4rem; font-weight: normal; letter-spacing: .05em; } h2 { font-size: 1rem; font-weight: normal; letter-spacing: .05em; } diff --git a/backend/internal/api/templates/base.html b/backend/internal/api/templates/base.html index 13aab4a..82e8e68 100644 --- a/backend/internal/api/templates/base.html +++ b/backend/internal/api/templates/base.html @@ -8,6 +8,16 @@
+ {{block "content" .}}{{end}} {{block "scripts" .}}{{end}} diff --git a/backend/internal/api/templates/days.html b/backend/internal/api/templates/days.html index 0720b3f..47486e3 100644 --- a/backend/internal/api/templates/days.html +++ b/backend/internal/api/templates/days.html @@ -2,13 +2,6 @@ {{define "content"}}