|
@ -16,6 +16,7 @@ import ( |
|
|
"github.com/gogits/gogs/models" |
|
|
"github.com/gogits/gogs/models" |
|
|
"github.com/gogits/gogs/modules/base" |
|
|
"github.com/gogits/gogs/modules/base" |
|
|
"github.com/gogits/gogs/modules/cron" |
|
|
"github.com/gogits/gogs/modules/cron" |
|
|
|
|
|
"github.com/gogits/gogs/modules/mailer" |
|
|
"github.com/gogits/gogs/modules/middleware" |
|
|
"github.com/gogits/gogs/modules/middleware" |
|
|
"github.com/gogits/gogs/modules/process" |
|
|
"github.com/gogits/gogs/modules/process" |
|
|
"github.com/gogits/gogs/modules/setting" |
|
|
"github.com/gogits/gogs/modules/setting" |
|
@ -174,6 +175,13 @@ func Dashboard(ctx *middleware.Context) { |
|
|
ctx.HTML(200, DASHBOARD) |
|
|
ctx.HTML(200, DASHBOARD) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func TestMailer(ctx *middleware.Context) { |
|
|
|
|
|
// send a test email to the user's email address and redirect back to Config
|
|
|
|
|
|
mailer.SendTestMail(ctx.User) |
|
|
|
|
|
|
|
|
|
|
|
ctx.Redirect(setting.AppSubUrl + "/admin/config") |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
func Config(ctx *middleware.Context) { |
|
|
func Config(ctx *middleware.Context) { |
|
|
ctx.Data["Title"] = ctx.Tr("admin.config") |
|
|
ctx.Data["Title"] = ctx.Tr("admin.config") |
|
|
ctx.Data["PageIsAdmin"] = true |
|
|
ctx.Data["PageIsAdmin"] = true |
|
|