forked from forgejo/forgejo
Add corn rask monitor panel
This commit is contained in:
parent
e07674bff1
commit
d952b4200c
25 changed files with 1909 additions and 398 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
|
||||
"github.com/gogits/gogs/models"
|
||||
"github.com/gogits/gogs/modules/base"
|
||||
"github.com/gogits/gogs/modules/cron"
|
||||
"github.com/gogits/gogs/modules/middleware"
|
||||
"github.com/gogits/gogs/modules/setting"
|
||||
)
|
||||
|
@ -228,3 +229,19 @@ func Config(ctx *middleware.Context) {
|
|||
|
||||
ctx.HTML(200, "admin/config")
|
||||
}
|
||||
|
||||
func Monitor(ctx *middleware.Context) {
|
||||
ctx.Data["Title"] = "Monitoring Center"
|
||||
ctx.Data["PageIsMonitor"] = true
|
||||
|
||||
tab := ctx.Query("tab")
|
||||
switch tab {
|
||||
case "process":
|
||||
ctx.Data["PageIsMonitorProcess"] = true
|
||||
default:
|
||||
ctx.Data["PageIsMonitorCron"] = true
|
||||
ctx.Data["Entries"] = cron.ListEntries()
|
||||
}
|
||||
|
||||
ctx.HTML(200, "admin/monitor/cron")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue