forgejo/modules/templates
wxiaoguang fddde93759
[PORT] Replace DateTime with proper functions (gitea#32402)
Follow https://github.com/go-gitea/gitea/pull/32383

This PR cleans up the "Deadline" usages in templates, make them call
`ParseLegacy` first to get a `Time` struct then display by `DateUtils`.

Now it should be pretty clear how "deadline string" works, it makes it
possible to do further refactoring and correcting.

(cherry picked from commit 259811617ba15c77ddd89360178a59251d611af2)
2024-11-03 17:03:14 +01:00
..
eval Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
scopedtmpl Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
vars Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
base.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
dynamic.go Use a general approach to access custom/static/builtin assets (#24022) 2023-04-12 18:16:45 +08:00
helper.go [PORT] Replace DateTime with proper functions (gitea#32402) 2024-11-03 17:03:14 +01:00
helper_test.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
htmlrenderer.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
htmlrenderer_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
mailer.go Add slogan config (#3752) 2024-06-07 17:12:48 +00:00
main_test.go tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01: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_avatar.go Lazy load avatar images (#32051) 2024-09-22 09:11:06 +02:00
util_date.go [PORT] Replace DateTime with proper functions (gitea#32402) 2024-11-03 17:03:14 +01:00
util_date_test.go [PORT] Replace DateTime with proper functions (gitea#32402) 2024-11-03 17:03:14 +01:00
util_dict.go Use Set[Type] instead of map[Type]bool/struct{}. (#26804) 2023-08-30 06:55:25 +00:00
util_json.go Improve template helper (#24417) 2023-04-29 08:02:29 -04:00
util_misc.go Avoid losing token when updating mirror settings (#30429) 2024-04-15 20:01:36 +02:00
util_render.go feat: combine review requests comments 2024-10-25 22:57:32 +02:00
util_render_test.go feat(ui): add more emoji and code block rendering in issues 2024-09-24 14:20:33 +02:00
util_slice.go Improve template helper functions: string/slice (#24266) 2023-04-22 14:16:22 -04:00
util_string.go Refactor some Str2html code (#29397) 2024-03-06 12:10:44 +08:00
util_string_test.go templates: HasPrefix support for template.HTML 2024-02-16 15:20:52 +01:00
util_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00