Added more things to dashboard

This commit is contained in:
2026-06-07 02:29:27 +02:00
parent b93d9382ac
commit 92e7ea4667
4 changed files with 169 additions and 13 deletions

View File

@@ -50,8 +50,22 @@ func Dashboard(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/html")
err := dashboard.ExecuteTemplate(w, "base.html", struct {
Title string
Stats struct {
Items int
Projects int
Locations int
}
}{
Title: "Dashboard",
Stats: struct {
Items int
Projects int
Locations int
}{
Items: 1,
Projects: 1,
Locations: 3,
},
})
if err != nil {
return