diff --git a/internal/webui/templates/dashboard.html b/internal/webui/templates/dashboard.html index 33bc85f..90e6636 100644 --- a/internal/webui/templates/dashboard.html +++ b/internal/webui/templates/dashboard.html @@ -2,99 +2,141 @@ {{define "page_title"}}Dashboard{{end}} {{define "content"}} +{{if dget . "is_global_admin"}}
-
+
+
+
+
Attack Activity
+ View Blacklist +
+
+
+
+
{{dget . "active_blacklist_count"}}
+ Active Blocks +
+
+
{{dget . "failed_auth_24h"}}
+ Failed Auth (24h) +
+
+
{{dget . "failed_auth_7d"}}
+ Failed Auth (7d) +
+
+
{{dget . "blacklist_events_24h"}}
+ Blacklist Events (24h) +
+
+
{{dget . "blacklist_events_7d"}}
+ Blacklist Events (7d) +
+
+
+
+
+
+{{end}} + +
+
-
-
-
- -
+
-
-
-
- -
+
-
-
-
- -
+
-
-
-
- -
-
-
-
-
-
Status
-
- - {{title .health.Status}} -
- - {{if and (eq .health.Services.smtp_server "running") (eq .health.Services.database "ok")}} - All services running - {{else}} - {{if eq .health.Services.smtp_server "stopped"}}SMTP Server stopped{{end}} - {{if eq .health.Services.database "error"}}Database error{{end}} - {{end}} - +
+
+
+
+
+
Status
+
+ {{title .health.Status}} +
-
+
+
+
+
+
+
+ +
+
+
+
Quick Actions
+
+
+ + + + {{if dget . "is_global_admin"}} + + {{else}} + + {{end}}
@@ -180,63 +222,6 @@
- -{{if dget . "is_global_admin"}} -
-
-
-
-
Attack Activity
- View Blacklist -
-
-
-
-
{{dget . "active_blacklist_count"}}
- Active Blocks -
-
-
{{dget . "failed_auth_24h"}}
- Failed Auth (24h) -
-
-
{{dget . "failed_auth_7d"}}
- Failed Auth (7d) -
-
-
{{dget . "blacklist_events_24h"}}
- Blacklist Events (24h) -
-
-
{{dget . "blacklist_events_7d"}}
- Blacklist Events (7d) -
-
-
-
-
-
-{{end}} - -
-
-
-
Quick Actions
-
-
- - - - {{if dget . "is_global_admin"}} - - {{else}} - - {{end}} -
-
-
-
-
{{end}} {{define "extra_js"}}