You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/modules/templates
wxiaoguang 1c8bc4081a
Show friendly 500 error page to users and developers (#24110)
Close #24104

This also introduces many tests to cover many complex error handling
functions.

### Before

The details are never shown in production.

<details>

![image](https://user-images.githubusercontent.com/2114189/231805004-13214579-4fbe-465a-821c-be75c2749097.png)

</details>

### After

The details could be shown to site admin users. It is safe.

![image](https://user-images.githubusercontent.com/2114189/231803912-d5660994-416f-4b27-a4f1-a4cc962091d4.png)
2 years ago
..
eval Use a general Eval function for expressions in templates. (#23927) 2 years ago
vars Implement FSFE REUSE for golang files (#21840) 2 years ago
base.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
helper.go Use auto-updating, natively hoverable, localized time elements (#23988) 2 years ago
helper_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
htmlrenderer.go Show friendly 500 error page to users and developers (#24110) 2 years ago
htmlrenderer_test.go Show friendly 500 error page to users and developers (#24110) 2 years ago
mailer.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
static.go Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2 years ago
util.go Merge template functions "dict/Dict/mergeinto" (#23932) 2 years ago
util_test.go Merge template functions "dict/Dict/mergeinto" (#23932) 2 years ago