(c *context.Context)
| 106 | } |
| 107 | |
| 108 | func Dashboard(c *context.Context) { |
| 109 | c.Title("admin.dashboard") |
| 110 | c.PageIs("Admin") |
| 111 | c.PageIs("AdminDashboard") |
| 112 | |
| 113 | c.Data["GitVersion"] = conf.Git.Version |
| 114 | c.Data["GoVersion"] = runtime.Version() |
| 115 | c.Data["BuildTime"] = conf.BuildTime |
| 116 | c.Data["BuildCommit"] = conf.BuildCommit |
| 117 | |
| 118 | c.Data["Stats"] = database.GetStatistic(c.Req.Context()) |
| 119 | // FIXME: update periodically |
| 120 | updateSystemStatus() |
| 121 | c.Data["SysStatus"] = sysStatus |
| 122 | c.Success(tmplDashboard) |
| 123 | } |
| 124 | |
| 125 | // Operation types. |
| 126 | type AdminOperation int |
nothing calls this directly
no test coverage detected