summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-02 13:47:33 -0400
committerUnknwon <joe2010xtmf@163.com>2014-08-02 13:47:33 -0400
commit755eec745fa324fdd13078f0147638f8731652ba (patch)
tree3c04a98d64e128d2ce8887cc20ed361f04010052 /modules
parent669552e255fb98021b779918394c65792fe6f1d2 (diff)
downloadgitea-755eec745fa324fdd13078f0147638f8731652ba.tar.gz
gitea-755eec745fa324fdd13078f0147638f8731652ba.zip
Finish new repo settings page
Diffstat (limited to 'modules')
-rw-r--r--modules/auth/repo_form.go2
-rw-r--r--modules/middleware/context.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index 12bf5df501..a6c71e99ea 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -48,7 +48,7 @@ func (f *MigrateRepoForm) Validate(ctx *macaron.Context, errs *binding.Errors, l
}
type RepoSettingForm struct {
- RepoName string `form:"name" binding:"Required;AlphaDash;MaxSize(100)"`
+ RepoName string `form:"repo_name" binding:"Required;AlphaDash;MaxSize(100)"`
Description string `form:"desc" binding:"MaxSize(255)"`
Website string `form:"site" binding:"Url;MaxSize(100)"`
Branch string `form:"branch"`
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 5300539d42..1e6f8e9525 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -96,9 +96,9 @@ func (ctx *Context) HasError() bool {
return hasErr.(bool)
}
-// HTML calls render.HTML underlying but reduce one argument.
+// HTML calls Context.HTML and converts template name to string.
func (ctx *Context) HTML(status int, name base.TplName) {
- ctx.Render.HTML(status, string(name), ctx.Data)
+ ctx.Context.HTML(status, string(name))
}
// RenderWithErr used for page has form validation but need to prompt error to users.