e938828a8c
fix loading ofr login form and redirects.
2025-04-23 10:06:55 +01:00
2ce810a4dd
Refactoring cont.
2025-04-23 09:44:19 +01:00
5c3a847900
Massive refactor!
2025-04-22 23:26:11 +01:00
d7c15141b8
Been too long since i did anything, can't remember what the hell is in all this....
2025-04-15 20:56:21 +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
aaf90b55da
Lots of UI and admin changes, need to clean up the three audit log tables and a few other niggles.
2025-04-01 00:05:48 +01:00
7eefb9ced0
Additional security and hardening.
2025-03-31 15:14:16 +01:00
c3a7480c65
expand on admin functionality, hardening still needs to be implemented.
2025-03-31 10:52:12 +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