summaryrefslogtreecommitdiffstats
path: root/routers/admin
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-19 01:08:03 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-19 01:08:03 -0400
commitf147ad619a68440ef6c30d797a8217e687e8d51d (patch)
tree0f32ea8c645b514e47482d92b59de5a852306674 /routers/admin
parent8d3276cab0bb554d63a38ddf3d065f247cf9b3d8 (diff)
downloadgitea-f147ad619a68440ef6c30d797a8217e687e8d51d.tar.gz
gitea-f147ad619a68440ef6c30d797a8217e687e8d51d.zip
Basic process manager
Diffstat (limited to 'routers/admin')
-rw-r--r--routers/admin/admin.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index d4b49a9e15..a14ffae0e5 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -16,6 +16,7 @@ import (
"github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/cron"
"github.com/gogits/gogs/modules/middleware"
+ "github.com/gogits/gogs/modules/process"
"github.com/gogits/gogs/modules/setting"
)
@@ -238,10 +239,12 @@ func Monitor(ctx *middleware.Context) {
switch tab {
case "process":
ctx.Data["PageIsMonitorProcess"] = true
+ ctx.Data["Processes"] = process.Processes
+ ctx.HTML(200, "admin/monitor/process")
default:
ctx.Data["PageIsMonitorCron"] = true
ctx.Data["Entries"] = cron.ListEntries()
+ ctx.HTML(200, "admin/monitor/cron")
}
- ctx.HTML(200, "admin/monitor/cron")
}