feat: added activity log

This commit is contained in:
2026-06-10 14:17:33 +02:00
parent 96f1a40266
commit 0442e4f699
16 changed files with 1027 additions and 579 deletions

View File

@@ -37,6 +37,10 @@ var accountSettings = template.Must(template.ParseFiles(
"frontend/htmx/contents/dash/base.html",
"frontend/htmx/contents/dash/account_settings.html"))
var activity = template.Must(template.ParseFiles(
"frontend/htmx/contents/dash/base.html",
"frontend/htmx/contents/dash/activity.html"))
var home = template.Must(template.ParseFiles("frontend/htmx/home.html"))
func Home(w http.ResponseWriter, r *http.Request) {
@@ -156,6 +160,17 @@ func AccountSettings(w http.ResponseWriter, r *http.Request) {
return
}
}
func Activity(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html")
err := activity.ExecuteTemplate(w, "base.html", struct {
Title string
}{
Title: "Activity Log",
})
if err != nil {
return
}
}
var minifier *minify.M