forked from forgejo/forgejo
Backport #27856 The only conflict is `ThemeName` in `500.tmpl`, it has been resolved manually by keeping using old `{{.SignedUser.Theme}}{{else}}{{DefaultTheme}}`
This commit is contained in:
parent
18a782f73d
commit
6ac2ade97d
10 changed files with 33 additions and 65 deletions
|
@ -27,6 +27,7 @@ func TestRenderPanicErrorPage(t *testing.T) {
|
|||
respContent := w.Body.String()
|
||||
assert.Contains(t, respContent, `class="page-content status-page-500"`)
|
||||
assert.Contains(t, respContent, `</html>`)
|
||||
assert.Contains(t, respContent, `lang="en-US"`) // make sure the locale work
|
||||
|
||||
// the 500 page doesn't have normal pages footer, it makes it easier to distinguish a normal page and a failed page.
|
||||
// especially when a sub-template causes page error, the HTTP response code is still 200,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue