fix: error handling now displays page correctly, fixes #10777

This commit is contained in:
Torkel Ödegaard
2018-02-06 12:27:25 +01:00
parent 6e68c2069e
commit 0e61a670bb
7 changed files with 64 additions and 72 deletions

View File

@ -206,7 +206,9 @@ func (ctx *Context) Handle(status int, title string, err error) {
ctx.Data["Title"] = title
ctx.Data["AppSubUrl"] = setting.AppSubUrl
ctx.HTML(status, strconv.Itoa(status))
ctx.Data["Theme"] = "dark"
ctx.HTML(status, "error")
}
func (ctx *Context) JsonOK(message string) {