threadr.lostcave.ddnss.de/models
Joca 309e516480
Preferences: Add user preferences system with database table and settings page
- Add user_preferences table to store per-user settings (auto_save_drafts, markdown_preview_default)
- Create UserPreferences model with GetUserPreferences, CreateDefaultPreferences, and UpdateUserPreferences functions
- Add PreferencesHandler for GET/POST requests to display and save user preferences
- Create preferences.html template with checkbox for draft auto-save and radio buttons for markdown preview default
- Add "Preferences" link to navbar for logged-in users
- Register /preferences/ route with login requirement

This establishes the foundation for advanced features like draft auto-save and markdown preview toggle, allowing users to customize their experience.
2026-01-15 23:21:03 -03:00
..
board.go All: Migrate boards from global to board specific 2025-08-22 00:07:13 -03:00
board_permission.go Initial Commit 2025-06-15 02:37:02 +02:00
chat.go Chat: Add Markdown support 2025-09-05 22:09:17 -03:00
file.go feat: Add file-based avatar system 2025-06-21 16:21:21 -03:00
like.go Initial Commit 2025-06-15 02:37:02 +02:00
news.go Create admin user, admin can edit news blotter 2025-06-15 02:41:36 +02:00
notification.go Initial Commit 2025-06-15 02:37:02 +02:00
post.go Implemented features for creating and deleting boards and threads, removed thread types, enhanced CSS for boards and comments 2025-06-15 02:44:03 +02:00
reaction.go Initial Commit 2025-06-15 02:37:02 +02:00
repost.go Initial Commit 2025-06-15 02:37:02 +02:00
thread.go Board: Fix mismatch between schema and query 2025-08-21 23:42:03 -03:00
user.go using bcrypt 2025-12-07 21:30:23 -03:00
user_preferences.go Preferences: Add user preferences system with database table and settings page 2026-01-15 23:21:03 -03:00