0634876b75
Add in context to dashboard for user to topbar loads all items & refactor for clarity of variable extraction.
2025-04-23 15:29:34 +01:00
5c3a847900
Massive refactor!
2025-04-22 23:26:11 +01:00
2498b33a9c
Refactor: Centralize template loading and improve error handling
...
- Introduced helpers.LoadTemplateFiles() for consistent layout + topbar rendering
- Replaced repeated template.ParseFiles() calls across handlers
- Created generic RenderError(w, r, statusCode) helper
- Replaced old Render403 with flexible RenderError
- Updated AdminOnly middleware to render 403 errors with context
- Added 500.html template for graceful panic fallback
- Prepared structure for future error codes (404, 429, etc.)
2025-04-02 09:12:13 +01:00
5ea780fcab
Cleanup: Finalize template context integration and remove legacy code
...
- Replaced legacy TemplateContext calls with structured TemplateData usage
- Removed unused variables and redundant storage calls in notifications handler
- Ensured consistent use of BuildTemplateData across user-facing handlers
- Resolved all compile-time errors from refactor
- Ready for runtime testing and further layout integration
2025-04-01 21:20:05 +01:00
f8dab97a54
Working through issue where prizes are incorrect and need updating.
2025-03-29 15:42:14 +00:00
322b4877ed
New admin triggers for db maintenance, updating display of prize results and logic fix
2025-03-28 22:52:54 +00:00
cabc283673
madness continues
2025-03-28 13:04:53 +00:00
23e0208317
Lots of changes around viewing tickets from css perspective logic changes nwe handlers and service triggers... just lots of stuff...
2025-03-28 10:05:54 +00:00