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
..
2026-04-09 15:03:32 +02:00
2026-02-01 10:35:51 +00:00
2026-03-30 14:59:10 +00:00
2026-04-01 11:26:52 +08:00
2026-03-01 13:32:35 +00:00
2025-04-01 09:42:10 +00:00
2026-02-24 23:46:08 +08:00
2025-06-27 21:48:03 +08:00
2025-04-09 16:34:38 +00:00
2026-04-06 11:07:33 +00:00
2026-03-31 17:22:18 +00:00
2024-11-11 04:07:54 +08:00
2025-09-04 09:54:58 -07:00
2025-09-01 19:40:12 +00:00
2026-02-12 21:39:36 +00:00
2026-01-13 13:13:39 +00:00
2026-01-30 20:48:56 +00:00
2026-04-03 20:03:59 +00:00
2026-04-10 17:34:12 +00:00
2026-04-04 16:27:57 -07:00
2025-09-13 18:01:00 +00:00
2025-09-06 16:52:41 +00:00
2026-03-29 10:24:30 +00:00
2025-08-18 15:17:19 +00:00
2026-02-19 01:23:32 +00:00
2026-04-06 11:07:33 +00:00
2025-06-18 01:48:09 +00:00
2026-01-23 20:24:58 +00:00
2026-03-01 13:32:35 +00:00
2026-03-25 16:07:59 -07:00
2026-04-06 11:07:33 +00:00
2025-11-12 19:44:49 +08:00
2026-04-10 10:39:28 +00:00
2025-06-18 01:48:09 +00:00
2026-03-26 00:37:48 +08:00
2026-02-28 11:23:20 -08:00
2026-01-21 01:35:14 +00:00
2026-04-12 10:17:25 +08:00
2022-11-27 18:20:29 +00:00
2025-08-28 03:52:43 +00:00
2026-04-01 11:26:52 +08:00
2026-01-21 01:35:14 +00:00
2026-03-02 22:08:53 +00:00
2025-06-12 03:59:33 +00:00
2026-04-08 00:39:53 +08:00
2025-03-23 19:52:43 +00:00
2022-11-27 18:20:29 +00:00
2026-03-21 15:39:47 -07:00
2026-01-21 01:35:14 +00:00
2025-09-13 18:01:00 +00:00
2025-04-01 10:14:01 +00:00
2026-04-05 19:13:34 +00:00
2026-01-21 01:35:14 +00:00
2026-03-08 15:57:37 +00:00
2025-12-27 09:05:24 -08:00
2025-03-31 01:53:48 -04:00
2026-03-21 15:39:47 -07:00
2025-06-18 01:48:09 +00:00
2025-02-21 00:05:40 +08:00
2026-02-19 01:23:32 +00:00
2026-04-10 13:02:35 +00:00
2022-12-30 23:31:00 +08:00
2025-06-09 19:51:02 +00:00
2026-03-26 00:37:48 +08:00
2026-04-01 09:56:20 +08:00
2026-03-10 05:26:16 +00:00
2025-08-28 03:52:43 +00:00
2025-01-21 18:57:07 +00:00
2025-10-04 01:21:26 +08:00
2026-04-12 10:17:25 +08:00
2026-03-31 16:22:23 +00:00
2026-02-19 01:23:32 +00:00
2026-02-19 01:23:32 +00:00
2026-03-23 18:23:42 +00:00
2023-02-05 15:29:03 +08:00
2026-03-26 00:37:48 +08:00
2025-04-01 10:14:01 +00:00
2022-11-27 18:20:29 +00:00
2025-01-09 09:21:47 +08:00
2026-03-31 16:22:23 +00:00
2026-03-22 15:49:45 +00:00
2026-04-03 06:12:04 +00:00
2026-02-20 16:12:22 +00:00
2025-06-12 03:59:33 +00:00