From a5e96ddb0b428f45317ef38a6c2b04cdc9238e2a Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 23 Jan 2026 09:44:47 -0500 Subject: [PATCH] feat: restructure admin dashboard into separate pages - Convert admin dashboard from single 2-column page to multi-page interface - Create main admin dashboard (/admin) as overview with navigation sidebar - Add separate profile settings page (/admin/profile) for user account management - Add separate library management page (/admin/library) combining folder and scan settings - Implement sidebar navigation pattern similar to Gitea, Jellyfin, Audiobookshelf - Add dedicated templates: admin.html, admin_profile.html, admin_library.html - Include quick actions and statistics on main dashboard - Improve UI with better organization and visual hierarchy - Maintain consistent navigation and theme across all admin pages - Add folder management, scan settings, and library statistics to library page --- templates/admin.html | 382 +++++++++-------------------------- templates/admin_library.html | 303 +++++++++++++++++++++++++++ templates/admin_profile.html | 198 ++++++++++++++++++ 3 files changed, 591 insertions(+), 292 deletions(-) create mode 100644 templates/admin_library.html create mode 100644 templates/admin_profile.html diff --git a/templates/admin.html b/templates/admin.html index 6ea7df3..1dae2ff 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -11,7 +11,7 @@

πŸ“š Bookmann

- Dashboard + Library Welcome, {{.User.Username}}!
-
- -
-
- - ← Back to Library - -
-

Admin Dashboard

-

Manage your account settings and library preferences

-
+ + - -
- -
-

User Preferences

+ +
+
+ {{if eq .CurrentPage "dashboard"}} + +
+

Dashboard

+

Overview of your Bookmann library and settings

+
- -
-

Username

-
- - -
-
-
- - -
-

Email Address

-
- - -
-
-
- - -
-

Change Password

-
-
- - + +
+
+
+
πŸ“–
+
+

Library

+

Manage your ebook collection

+
+
+ View Library
-
- - -
-
- - -
- - -
-
- -
-

Theme

-
- - -
-
-
+
+
+
βš™οΈ
+
+

Settings

+

Configure your preferences

+
+
+ Manage Settings +
+ +
+
+
πŸ”
+
+

Scanner

+

Library scanning options

+
+
+ Configure Scanner +
+
+ + +
+

Quick Actions

+
+ + +
Manage Folders
+
Add or remove scan directories
+
+
+
+ {{end}}
- - -
-

Library Preferences

- - -
-

Ebook Folders

-

Manage the folders where Bookmann scans for ebooks

- - -
-
- - -
-
- - -
- -
- -
-
- - -
-

Scan Settings

- - -
- -

Automatically scan folders for new ebooks

-
- - -
- - -
- - -
- -

Manually scan all configured folders

-
- -
-
- - -
-

Danger Zone

-
-

Delete Account

-

- Once you delete your account, there is no going back. Please be certain. -

- -
-
-
-
+
{{end}} \ No newline at end of file diff --git a/templates/admin_library.html b/templates/admin_library.html new file mode 100644 index 0000000..9b44be8 --- /dev/null +++ b/templates/admin_library.html @@ -0,0 +1,303 @@ +{{template "base.html" .}} + +{{define "title"}}Library Management - Bookmann{{end}} + +{{define "content"}} + + + +
+ + + + +
+
+ +
+ +

Library Management

+

Configure your ebook folders and scanning preferences

+
+ + +
+ +
+

πŸ“ Ebook Folders

+

Manage the directories where Bookmann scans for ebooks. Supported formats: EPUB, PDF, MOBI, AZW3, FB2, TXT

+ + +
+

Add Folder

+
+ + +
+
+
+ + +
+

Configured Folders

+
+ +
+
+
+ + +
+

πŸ” Scan Settings

+

Configure how and when Bookmann scans your folders for new ebooks

+ +
+ +
+

Automatic Scanning

+ +
+ + +
+

Scan Frequency

+ +

How often to scan when automatic scanning is enabled

+
+
+ + +
+

Manual Scan

+
+ + Manually scan all configured folders immediately +
+
+
+
+ + +
+

πŸ“Š Library Statistics

+
+
+
-
+
Folders
+
+
+
-
+
Books
+
+
+
-
+
Last Scan
+
+
+
+
+
+
+
+ + +{{end}} \ No newline at end of file diff --git a/templates/admin_profile.html b/templates/admin_profile.html new file mode 100644 index 0000000..fd7ed89 --- /dev/null +++ b/templates/admin_profile.html @@ -0,0 +1,198 @@ +{{template "base.html" .}} + +{{define "title"}}Profile Settings - Bookmann{{end}} + +{{define "content"}} + + + +
+ + + + +
+
+ +
+ +

Profile Settings

+

Manage your account information and preferences

+
+ + +
+ +
+

Account Information

+ + +
+

Username

+
+ + +
+
+
+ + +
+

Email Address

+
+ + +
+
+
+ + +
+

Change Password

+
+
+ + +
+
+ + +
+
+ + +
+ +
+
+
+
+ + +
+

Appearance

+ +
+

Theme

+
+ + +
+
+
+
+ + +
+

Danger Zone

+
+

Delete Account

+

+ Once you delete your account, there is no going back. Please be certain. +

+ +
+
+
+
+
+
+ + +{{end}} \ No newline at end of file