summaryrefslogtreecommitdiffstats
path: root/routers/admin/admin.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-21 03:27:59 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-21 03:27:59 -0400
commitc1576b4c400376f22ec25012a6ca66e9c5539ee4 (patch)
treeb8e682560055e8e91448d701e798edc3450a86c4 /routers/admin/admin.go
parent5373a3093eaf9bc9ced7a6b3335ccf1b17fd343e (diff)
downloadgitea-c1576b4c400376f22ec25012a6ca66e9c5539ee4.tar.gz
gitea-c1576b4c400376f22ec25012a6ca66e9c5539ee4.zip
Add admin add user
Diffstat (limited to 'routers/admin/admin.go')
-rw-r--r--routers/admin/admin.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index 1095a599b9..547883f7bc 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -5,7 +5,12 @@
package admin
import (
+ "strings"
+
+ "github.com/codegangsta/martini"
+
"github.com/gogits/gogs/models"
+ "github.com/gogits/gogs/modules/base"
"github.com/gogits/gogs/modules/middleware"
)
@@ -45,5 +50,18 @@ func Repositories(ctx *middleware.Context) {
func Config(ctx *middleware.Context) {
ctx.Data["Title"] = "Server Configuration"
ctx.Data["PageIsConfig"] = true
+
+ ctx.Data["AppUrl"] = base.AppUrl
+ ctx.Data["Domain"] = base.Domain
+ ctx.Data["RunUser"] = base.RunUser
+ ctx.Data["RunMode"] = strings.Title(martini.Env)
+ ctx.Data["RepoRootPath"] = base.RepoRootPath
+
+ ctx.Data["Service"] = base.Service
+
+ ctx.Data["DbCfg"] = models.DbCfg
+
+ ctx.Data["Mailer"] = base.MailService
+
ctx.HTML(200, "admin/config")
}