diff --git a/templates/admin_library.templ b/templates/admin_library.templ
index a864b4f..c572a78 100644
--- a/templates/admin_library.templ
+++ b/templates/admin_library.templ
@@ -8,25 +8,10 @@ templ AdminLibrary(user User, libraries []LibraryData, users []User) {
Library Management - Bookhoard
-
+
@Header(user, "/admin/library")
-
+ @AdminSidebar(user, "/admin/library")
diff --git a/templates/admin_users.templ b/templates/admin_users.templ
index 562905e..3f1b1cd 100644
--- a/templates/admin_users.templ
+++ b/templates/admin_users.templ
@@ -12,130 +12,134 @@ templ AdminUsers(currentUser User, users []User, adminCount int) {
-
+
@Header(currentUser, "/admin/users")
-
-
-
+ User Management
-Manage user accounts and permissions
-
+ @AdminSidebar(currentUser, "/admin/users")
-
-
}
-
-
-
+
+
+ | Username | -Role | -Created | -Actions | -|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
-
-
-
-
- {user.Username}
- if user.ID == currentUser.ID {
- You
- }
- |
+
- {user.Email}
- |
+
+
| Username | +Role | +Created | +Actions | +||
|---|---|---|---|---|---|
|
+
+
+
+
+ {user.Username}
+ if user.ID == currentUser.ID {
+ You
+ }
+ |
-
-
- if user.Role == "admin" && adminCount == 1 {
-
-
-
-
- } else {
-
-
- }
- |
+
+
+ {user.Email}
+ |
-
-
- { user.CreatedAt.Format("2006-01-02") }
- |
+
+
+ if user.Role == "admin" && adminCount == 1 {
+
+
+
+
+ } else {
+
+
+ }
+ |
-
- - - if user.Role == "admin" && adminCount == 1 { - - } else { - - } - | -
{ user.CreatedAt.Format("2006-01-02") }
+