diff options
author | Unknwon <u@gogs.io> | 2015-12-20 01:06:54 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-20 01:06:54 -0500 |
commit | c62a6b7a1238524225ec9c214dc5eac7da017663 (patch) | |
tree | 44a9b60dd7deef4f218b086e166f104728101cb5 /modules/middleware | |
parent | cadf03db68bee141f55a0a26d68efc5870e66ead (diff) | |
download | gitea-c62a6b7a1238524225ec9c214dc5eac7da017663.tar.gz gitea-c62a6b7a1238524225ec9c214dc5eac7da017663.zip |
#2014 allow switch branches between two orgs in compose PR
Diffstat (limited to 'modules/middleware')
-rw-r--r-- | modules/middleware/context.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index 571b19bf73..2d24d0ce58 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -125,6 +125,7 @@ func (ctx *Context) HasValue(name string) bool { // HTML calls Context.HTML and converts template name to string. func (ctx *Context) HTML(status int, name base.TplName) { + log.Debug("Template: %s", name) ctx.Context.HTML(status, string(name)) } @@ -241,6 +242,7 @@ func Contexter() macaron.Handler { ctx.Data["CsrfToken"] = x.GetToken() ctx.Data["CsrfTokenHtml"] = template.HTML(`<input type="hidden" name="_csrf" value="` + x.GetToken() + `">`) + log.Debug("CSRF Token: %v | %v", ctx.Data["CsrfToken"], ctx.GetCookie("_csrf")) ctx.Data["ShowRegistrationButton"] = setting.Service.ShowRegistrationButton ctx.Data["ShowFooterBranding"] = setting.ShowFooterBranding |