1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Work on admin

This commit is contained in:
Unknown
2014-03-20 07:50:26 -04:00
parent 5cb2d3d2e2
commit 9f9cd6bfc6
19 changed files with 177 additions and 41 deletions

View File

@@ -18,7 +18,7 @@ func Create(ctx *middleware.Context, form auth.CreateRepoForm) {
ctx.Data["Licenses"] = models.Licenses
if ctx.Req.Method == "GET" {
ctx.HTML(200, "repo/create", ctx.Data)
ctx.HTML(200, "repo/create")
return
}
@@ -45,7 +45,7 @@ func SettingPost(ctx *middleware.Context) {
case "delete":
if len(ctx.Repo.Repository.Name) == 0 || ctx.Repo.Repository.Name != ctx.Query("repository") {
ctx.Data["ErrorMsg"] = "Please make sure you entered repository name is correct."
ctx.HTML(200, "repo/setting", ctx.Data)
ctx.HTML(200, "repo/setting")
return
}