Added more things to dashboard
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user