aggiunto le due sezioni quasar private e admin
This commit is contained in:
@@ -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...)
|
||||
|
||||
Reference in New Issue
Block a user