diff options
author | Unknwon <u@gogs.io> | 2017-06-03 07:26:09 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-06-03 07:26:09 -0400 |
commit | 2478b874320ed91d4424dea42a40aacbd2b1ce1c (patch) | |
tree | dbaf2a482ffc43b5013aa08c83c686698ab181c1 /routers/dev | |
parent | e33c714073cc65f814bacf604a84cd2741951afa (diff) |
Refactoring: rename ctx -> c
Diffstat (limited to 'routers/dev')
-rw-r--r-- | routers/dev/template.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/routers/dev/template.go b/routers/dev/template.go index 544b3f5d..00afa5c4 100644 --- a/routers/dev/template.go +++ b/routers/dev/template.go @@ -10,15 +10,15 @@ import ( "github.com/gogits/gogs/pkg/setting" ) -func TemplatePreview(ctx *context.Context) { - ctx.Data["User"] = models.User{Name: "Unknown"} - ctx.Data["AppName"] = setting.AppName - ctx.Data["AppVer"] = setting.AppVer - ctx.Data["AppURL"] = setting.AppURL - ctx.Data["Code"] = "2014031910370000009fff6782aadb2162b4a997acb69d4400888e0b9274657374" - ctx.Data["ActiveCodeLives"] = setting.Service.ActiveCodeLives / 60 - ctx.Data["ResetPwdCodeLives"] = setting.Service.ResetPwdCodeLives / 60 - ctx.Data["CurDbValue"] = "" +func TemplatePreview(c *context.Context) { + c.Data["User"] = models.User{Name: "Unknown"} + c.Data["AppName"] = setting.AppName + c.Data["AppVer"] = setting.AppVer + c.Data["AppURL"] = setting.AppURL + c.Data["Code"] = "2014031910370000009fff6782aadb2162b4a997acb69d4400888e0b9274657374" + c.Data["ActiveCodeLives"] = setting.Service.ActiveCodeLives / 60 + c.Data["ResetPwdCodeLives"] = setting.Service.ResetPwdCodeLives / 60 + c.Data["CurDbValue"] = "" - ctx.HTML(200, (ctx.Params("*"))) + c.HTML(200, (c.Params("*"))) } |