gitea/modules/templates
wxiaoguang 8fcbdf05b0
Refactor flash message and remove SanitizeHTML template func (#37179)
1. Fix the "flash message" layout problem for different cases
* I am sure most of the users should have ever seen the ugly
center-aligned error message with multiple lines.
2. Fix inconsistent "Details" flash message EOL handling, sometimes
`\n`, sometimes `<br>`
   * Now, always use "\n" and use `<pre>` to render
3. Remove SanitizeHTML template func because it is not useful and can be
easily abused.
* But it is still kept for mail templates, for example:
https://github.com/go-gitea/gitea/issues/36049
4. Clarify PostProcessCommitMessage's behavior and add FIXME comment

By the way: cleaned up some devtest pages, move embedded style block to
CSS file
2026-04-12 10:17:25 +08:00
..
eval Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
scopedtmpl Refactor template render (#36438) 2026-01-24 05:11:49 +00:00
vars Refactor template render (#36438) 2026-01-24 05:11:49 +00:00
base.go Refactor template render (#36438) 2026-01-24 05:11:49 +00:00
helper.go Refactor flash message and remove SanitizeHTML template func (#37179) 2026-04-12 10:17:25 +08:00
helper_test.go Refactor flash message and remove SanitizeHTML template func (#37179) 2026-04-12 10:17:25 +08:00
htmlrenderer.go Fix CodeQL code scanning alerts (#36858) 2026-03-08 14:35:50 +00:00
htmlrenderer_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
mail.go Refactor flash message and remove SanitizeHTML template func (#37179) 2026-04-12 10:17:25 +08:00
page.go Clean up AppURL, remove legacy origin-url webcomponent (#37090) 2026-04-03 17:56:31 +00:00
templates_bindata.go Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
templates_dynamic.go Refactor embedded assets and drop unnecessary dependencies (#34692) 2025-06-12 03:59:33 +00:00
util_avatar.go fix(repo): unify DEFAULT_SHOW_FULL_NAME output in templates and dropdown (#36597) 2026-03-04 21:23:17 +08:00
util_date.go Use `relative-time` to render absolute dates (#36238) 2026-02-16 10:58:04 +00:00
util_date_test.go Use `relative-time` to render absolute dates (#36238) 2026-02-16 10:58:04 +00:00
util_dict.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
util_format.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
util_format_test.go Fix some overflows in test (#35315) 2025-08-20 15:20:22 +00:00
util_json.go enforce nolint scope (#34851) 2025-06-27 07:59:55 +02:00
util_misc.go Load `mentionValues` asynchronously (#36739) 2026-03-07 12:37:37 -08:00
util_render.go Refactor flash message and remove SanitizeHTML template func (#37179) 2026-04-12 10:17:25 +08:00
util_render_comment.go Improve timeline entries for WIP prefix changes in pull requests (#36518) 2026-02-05 05:57:08 +00:00
util_render_comment_test.go Improve timeline entries for WIP prefix changes in pull requests (#36518) 2026-02-05 05:57:08 +00:00
util_render_test.go Improve `labels-list` rendering (#34846) 2025-06-27 23:12:25 +08:00
util_slice.go Improve template helper functions: string/slice (#24266) 2023-04-22 14:16:22 -04:00
util_string.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
util_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00