summaryrefslogtreecommitdiffstats
path: root/routers/admin/admin.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-21 01:48:10 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-21 01:48:10 -0400
commitf6596f11c4aacd3c7c30098f7ffe79e936d21583 (patch)
treeaad5d5017b03d530e6c69ea474266fecea86d0e2 /routers/admin/admin.go
parent369ddf76a8ae6916ab72f1fa26c81b44c456c6ea (diff)
downloadgitea-f6596f11c4aacd3c7c30098f7ffe79e936d21583.tar.gz
gitea-f6596f11c4aacd3c7c30098f7ffe79e936d21583.zip
All configuration reload-able
Diffstat (limited to 'routers/admin/admin.go')
-rw-r--r--routers/admin/admin.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/routers/admin/admin.go b/routers/admin/admin.go
index a37f1207c9..1095a599b9 100644
--- a/routers/admin/admin.go
+++ b/routers/admin/admin.go
@@ -11,12 +11,14 @@ import (
func Dashboard(ctx *middleware.Context) {
ctx.Data["Title"] = "Admin Dashboard"
+ ctx.Data["PageIsDashboard"] = true
ctx.Data["Stats"] = models.GetStatistic()
ctx.HTML(200, "admin/dashboard")
}
func Users(ctx *middleware.Context) {
ctx.Data["Title"] = "User Management"
+ ctx.Data["PageIsUsers"] = true
var err error
ctx.Data["Users"], err = models.GetUsers(100, 0)
@@ -29,6 +31,8 @@ func Users(ctx *middleware.Context) {
func Repositories(ctx *middleware.Context) {
ctx.Data["Title"] = "Repository Management"
+ ctx.Data["PageIsRepos"] = true
+
var err error
ctx.Data["Repos"], err = models.GetRepos(100, 0)
if err != nil {
@@ -37,3 +41,9 @@ func Repositories(ctx *middleware.Context) {
}
ctx.HTML(200, "admin/repos")
}
+
+func Config(ctx *middleware.Context) {
+ ctx.Data["Title"] = "Server Configuration"
+ ctx.Data["PageIsConfig"] = true
+ ctx.HTML(200, "admin/config")
+}