summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-18 02:19:29 +0800
committerUnknwon <u@gogs.io>2015-08-18 02:19:29 +0800
commitb1696665bdf0e31c227493cf637d3867e102d131 (patch)
tree4dbd11c8998a8875147cf8e23b3d819d5aee080e /routers
parentd17f102339c8542cfb5e81ab6a705b1b64651f51 (diff)
downloadgitea-b1696665bdf0e31c227493cf637d3867e102d131.tar.gz
gitea-b1696665bdf0e31c227493cf637d3867e102d131.zip
make cron task configurable
Diffstat (limited to 'routers')
-rw-r--r--routers/admin/admin.go4
-rw-r--r--routers/install.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index 316f1d4257..46106aa427 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -14,8 +14,8 @@ import (
"github.com/Unknwon/macaron"
"github.com/gogits/gogs/models"
+ "github.com/gogits/gogs/models/cron"
"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"
@@ -229,6 +229,6 @@ func Monitor(ctx *middleware.Context) {
ctx.Data["PageIsAdmin"] = true
ctx.Data["PageIsAdminMonitor"] = true
ctx.Data["Processes"] = process.Processes
- ctx.Data["Entries"] = cron.ListEntries()
+ ctx.Data["Entries"] = cron.ListTasks()
ctx.HTML(200, MONITOR)
}
diff --git a/routers/install.go b/routers/install.go
index 3d3e899763..074a480371 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -18,9 +18,9 @@ import (
"gopkg.in/ini.v1"
"github.com/gogits/gogs/models"
+ "github.com/gogits/gogs/models/cron"
"github.com/gogits/gogs/modules/auth"
"github.com/gogits/gogs/modules/base"
- "github.com/gogits/gogs/modules/cron"
"github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/mailer"
"github.com/gogits/gogs/modules/middleware"