forgejo-federation/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)
2023-04-14 13:19:11 +08:00
..
eval Use a general Eval function for expressions in templates. (#23927) 2023-04-07 21:25:49 +08:00
vars Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
base.go Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
helper.go Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
helper_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
htmlrenderer.go Show friendly 500 error page to users and developers (#24110) 2023-04-14 13:19:11 +08:00
htmlrenderer_test.go Show friendly 500 error page to users and developers (#24110) 2023-04-14 13:19:11 +08:00
mailer.go Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
static.go Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
templates_bindata.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
util.go Merge template functions "dict/Dict/mergeinto" (#23932) 2023-04-07 09:39:08 -05:00
util_test.go Merge template functions "dict/Dict/mergeinto" (#23932) 2023-04-07 09:39:08 -05:00