gitea/modules/templates
wxiaoguang 259811617b
Some checks failed
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m12s
release-nightly / nightly-docker-rootless (push) Failing after 5m27s
Replace DateTime with proper functions (#32402)
Follow #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.
2024-11-02 21:04:53 +00:00
..
eval
scopedtmpl Replace interface{} with any (#25686) 2023-07-04 18:36:08 +00:00
vars
base.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
dynamic.go
helper_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
helper.go Replace DateTime with proper functions (#32402) 2024-11-02 21:04:53 +00:00
htmlrenderer_test.go
htmlrenderer.go Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
mailer.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
static.go
templates_bindata.go
util_avatar.go Lazy load avatar images (#32051) 2024-09-17 19:02:48 +00:00
util_date_test.go Replace DateTime with proper functions (#32402) 2024-11-02 21:04:53 +00:00
util_date.go Replace DateTime with proper functions (#32402) 2024-11-02 21:04:53 +00: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
util_misc.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
util_render_test.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
util_render.go Refactor names (#31405) 2024-06-19 06:32:45 +08:00
util_slice.go
util_string.go Refactor some Str2html code (#29397) 2024-03-01 07:11:51 +00:00
util_test.go