aboutsummaryrefslogtreecommitdiff
path: root/controllers
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-07-07 15:40:09 +0530
committerBobby <[email protected]>2025-07-07 15:40:09 +0530
commitb6a04140f2668a0dcae4befcd272e05b75bd14e5 (patch)
treebec232ae247690bf030bf05a452192f264df8c92 /controllers
parent98afdc4673f616bc61f9ef673580ca3933bdef8a (diff)
downloadimageboard-b6a04140f2668a0dcae4befcd272e05b75bd14e5.tar.xz
imageboard-b6a04140f2668a0dcae4befcd272e05b75bd14e5.zip
fix templates to use proper layout and semantic forms instead of tables
Diffstat (limited to 'controllers')
-rw-r--r--controllers/login.go1
-rw-r--r--controllers/posts.go1
-rw-r--r--controllers/preferences.go1
-rw-r--r--controllers/register.go1
4 files changed, 4 insertions, 0 deletions
diff --git a/controllers/login.go b/controllers/login.go
index 1d6bc5e..dc8dd48 100644
--- a/controllers/login.go
+++ b/controllers/login.go
@@ -8,5 +8,6 @@ import (
func LoginController(ctx *fiber.Ctx) error {
ctx.Locals("Title", "Login")
+ ctx.Locals("request", fiber.Map{"path": ctx.Path()})
return shortcuts.Render(ctx, "login", nil)
}
diff --git a/controllers/posts.go b/controllers/posts.go
index 6fdcd26..c3da9c1 100644
--- a/controllers/posts.go
+++ b/controllers/posts.go
@@ -8,6 +8,7 @@ import (
func PostsController(ctx *fiber.Ctx) error {
ctx.Locals("Title", "Posts")
+ ctx.Locals("request", fiber.Map{"path": ctx.Path()})
searchQuery := ctx.Query("tags", "")
diff --git a/controllers/preferences.go b/controllers/preferences.go
index 86e0fb3..3a504ed 100644
--- a/controllers/preferences.go
+++ b/controllers/preferences.go
@@ -8,5 +8,6 @@ import (
func PreferencesController(ctx *fiber.Ctx) error {
ctx.Locals("Title", "Site Preferences")
+ ctx.Locals("request", fiber.Map{"path": ctx.Path()})
return shortcuts.Render(ctx, "preferences", nil)
}
diff --git a/controllers/register.go b/controllers/register.go
index 3be4e64..9343732 100644
--- a/controllers/register.go
+++ b/controllers/register.go
@@ -8,5 +8,6 @@ import (
func RegisterController(ctx *fiber.Ctx) error {
ctx.Locals("Title", "Register")
+ ctx.Locals("request", fiber.Map{"path": ctx.Path()})
return shortcuts.Render(ctx, "register", nil)
}