diff --git a/.gitignore b/.gitignore index 7d8fffa..b8726fd 100644 --- a/.gitignore +++ b/.gitignore @@ -81,4 +81,4 @@ backups/ # Ignore binaries -gomft +gomft \ No newline at end of file diff --git a/components/admin.templ b/components/admin.templ new file mode 100644 index 0000000..a48177c --- /dev/null +++ b/components/admin.templ @@ -0,0 +1,125 @@ +package components + +import ( + "context" +) + +// AdminLayout renders the main admin dashboard +templ AdminLayout(ctx context.Context) { + @LayoutWithContext("Administration", ctx) { +
Total Users
+1,234
+Active Sessions
+42
+System Health
+98%
+| User | +Action | +Timestamp | +
|---|---|---|
| admin@example.com | +Updated user permissions | +2024-02-20 14:32:10 | +
| Timestamp | +User | +Action | +Entity | +Details | +
|---|---|---|---|---|
| + No audit logs found matching your filters. + | +||||
| + {log.Timestamp.Format("2006-01-02 15:04:05")} + | ++ {log.Username} + | ++ + {log.Action} + + | ++ {log.EntityType} + + (ID: {fmt.Sprint(log.EntityID)}) + + | ++ + | +
Manage database backups, restoration and maintenance
+Create a backup of the current database state.
- -Vacuum the database to reclaim space and optimize performance.
-Remove old job history records to free up database space.
-