aggiunto le due sezioni quasar private e admin

This commit is contained in:
fabio
2026-03-01 17:44:45 +01:00
parent 675264f26a
commit 6d5d58581e
107 changed files with 13601 additions and 7814 deletions

View File

@@ -46,7 +46,7 @@ func renderPublic(c *fiber.Ctx, page string, data map[string]any) error {
return c.Send(out.Bytes())
}
func renderPrivate(c *fiber.Ctx, page string, data map[string]any) error {
func renderPrivate(c *fiber.Ctx, _ string, data map[string]any) error {
viewData := map[string]any{}
for k, v := range localsTemplateData(c) {
viewData[k] = v
@@ -64,10 +64,10 @@ func renderPrivate(c *fiber.Ctx, page string, data map[string]any) error {
files := []string{
"web/templates/layout.html",
"web/templates/private/_navbar.html",
"web/templates/public/_navbar.html",
"web/templates/partials/language_dropdown.html",
"web/templates/public/_flash.html",
filepath.Join("web/templates/private", page),
"web/templates/private.html",
}
tmpl, err := template.ParseFiles(files...)