From 84af6427d8205b1882b9f9df11ce394f96d6b792 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 22 Dec 2025 15:07:55 +0100 Subject: feat(backend): admin dashboard --- backend/templates/admin.html | 33 +++++++++++++++++++++++++++++++++ backend/templates/components.html | 24 ++++++++++++------------ 2 files changed, 45 insertions(+), 12 deletions(-) create mode 100644 backend/templates/admin.html (limited to 'backend/templates') diff --git a/backend/templates/admin.html b/backend/templates/admin.html new file mode 100644 index 0000000..41addc9 --- /dev/null +++ b/backend/templates/admin.html @@ -0,0 +1,33 @@ +{{define "body"}} +
+
+

Administration

+

+ Panel d'administration très simple. Il affiche les stats et possiblement les webmentions et autre contenu à + modérer. +

+
+
+

Stats

+ + + + + + + + + + {{ range .Rows }} + + + + + + {{ end }} + +
OriginTargetVisits
{{ .Origin }}{{ .Target }}{{ .Visit }}
+ +
+
+{{end}} diff --git a/backend/templates/components.html b/backend/templates/components.html index b4ffbe6..b180123 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -1,4 +1,14 @@ -{{define "section_display"}} +{{ define "pagination" }} + +{{ end }} {{define "section_display"}}
{{ $uri := .URI }} {{ range .Data }}
@@ -11,17 +21,7 @@
{{ end }} -- cgit v1.2.3 From 9bba6dcbb2e83fe53604d38b89fb79ce47eacddd Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 22 Dec 2025 18:21:32 +0100 Subject: feat(backend): track page load without referer --- backend/templates/admin.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'backend/templates') diff --git a/backend/templates/admin.html b/backend/templates/admin.html index 41addc9..008827f 100644 --- a/backend/templates/admin.html +++ b/backend/templates/admin.html @@ -9,6 +9,24 @@

Stats

+

Visits

+ + + + + + + + + {{ range .Visits }} + + + + + {{ end }} + +
TargetVisits
{{ .Target }}{{ .Visit }}
+

Origin

-- cgit v1.2.3