diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-03-18 17:47:50 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-03-18 17:47:50 -0400 |
commit | 58147bef20d56fd5cb8bccad08eff53cecaa2681 (patch) | |
tree | b803467fe823b455673f8acf16e298f3e30a1dae /routers | |
parent | 76644c2fcc29d89dfea2248966527d1996628184 (diff) | |
parent | ccd43b09b22f551070c2656dd2f4c7f347619a1c (diff) |
Merge pull request #31 from shxsun/master
add some comment
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/setting.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go index 91e992b1..ea42f70c 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -14,6 +14,7 @@ import ( "github.com/gogits/gogs/modules/middleware" ) +// render user setting page (email, website modify) func Setting(ctx *middleware.Context, form auth.UpdateProfileForm) { ctx.Data["Title"] = "Setting" ctx.Data["PageIsUserSetting"] = true @@ -26,6 +27,7 @@ func Setting(ctx *middleware.Context, form auth.UpdateProfileForm) { return } + // below is for POST requests if hasErr, ok := ctx.Data["HasError"]; ok && hasErr.(bool) { ctx.Render.HTML(200, "user/setting", ctx.Data) return |