summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
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"