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
e5bf12ad77
Feature: Full notification read view with conditional mark-as-read logic
...
- Added dedicated route and view for reading individual notifications (/account/notifications/read)
- Ensured notification is only marked as read if it hasn't already been
- Updated Notification model to use Subject and Body fields
- Fixed field references in templates (Title → Subject, Message → Body)
- Updated topbar dropdown to use correct field names and display logic
- Gracefully handle "notification not found" cases in template output
- Ensured consistent template parsing with layout and topbar inclusion
- Improved error logging for better diagnosis
2025-04-01 23:08:58 +01:00
06e647d00f
Feature: Add account-protected route to mark notifications as read
...
- Created /account/notifications/read endpoint secured by session middleware
- Ensured users can only mark their own notifications as read
- Updated dropdown links to point to /account/notifications/read?id={id}
- Improved notification security by matching user_id in DB update
- Added redirect flow to full notifications page after marking read
- Logged DB errors to assist debugging
2025-04-01 22:12:41 +01:00
1e372da57d
adjust count mechanism.
2025-04-01 21:39:57 +01:00
0e20cc023c
more changes but unsure of state had to trash last set fof changes and try repair.
2025-04-01 15:50:15 +01:00
5aaddf16f1
More layout and customisations.
2025-04-01 10:19:56 +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
b466c351da
Fixzed display of prize tiers on tickets
2025-03-30 23:51:27 +01:00
f8dab97a54
Working through issue where prizes are incorrect and need updating.
2025-03-29 15:42:14 +00:00
c0143df8c0
not required already in layout
2025-03-28 22:55:38 +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
75d8d1700e
updated so balls are coloured to their respective game. need to thing about set for life.
2025-03-28 14:52:50 +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
e13b375af7
Lots of changes, still more to do
2025-03-27 15:03:43 +00:00
f7b54db7c1
Get ticket functionality.
2025-03-26 15:33:40 +00:00
66abdbdd4d
Add tickets to db.
2025-03-26 13:26:43 +00:00
7f3a9ea135
removed
2025-03-26 08:56:21 +00:00
e3f3d73fdd
Finally get login working.
2025-03-26 08:36:11 +00:00
fd1b8f3f11
Minor changes to layout
2025-03-25 22:28:41 +00:00
11f031ff54
AuThEnTiCaTiOn and clean up....
2025-03-25 21:39:48 +00:00
b58a8bdb82
Circular dependancy issue when working on hardening
2025-03-25 16:43:16 +00:00
0b93fd75dd
add and refine thunderball results page
2025-03-25 14:47:41 +00:00
f1ad9757ba
added authentication among other things. considered working at this point.
2025-03-25 11:27:21 +00:00
3598cb5fd9
Update
2025-03-25 09:11:23 +00:00
f4a8983b48
add options for new draws
2025-03-25 09:02:14 +00:00
813f9458d1
create ticket input
2025-03-24 22:02:54 +00:00
ed2abe6463
update draw input
2025-03-24 22:02:43 +00:00
ac76809e95
update index
2025-03-24 22:02:21 +00:00
cf8cd691dc
init
2025-03-24 19:17:39 +00:00