feat: Add copier and curl links
All checks were successful
/ pre-commit (push) Successful in 1m16s

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2025-10-02 09:23:40 +02:00
commit b316c6ef67
Signed by: jriou
GPG key ID: 9A099EDA51316854
4 changed files with 77 additions and 3 deletions

View file

@ -34,6 +34,7 @@ type PageData struct {
AceDirectory string
BootstrapDirectory string
DisableEditor bool
Password string // Not stored in the database
}
func WebError(w http.ResponseWriter, pageData PageData, templates *template.Template, templateName string, logger *slog.Logger, topLevelErr error, err error) {
@ -439,6 +440,7 @@ func (h *GetProtectedWebNoteHandler) ServeHTTP(w http.ResponseWriter, r *http.Re
}
}
h.PageData.Password = password
h.PageData.Note = note
logger.Debug("rendering page")