Commit Graph

8 Commits

Author SHA1 Message Date
silverwind 73937a5204
avoid HTMLString and render placeholder in template 2024-04-26 13:14:09 +02:00
silverwind 41bd63b6e8
fix comment 2024-04-25 23:48:49 +02:00
silverwind 484691be05
check err 2024-04-25 23:39:31 +02:00
silverwind 0dbb24635a
fmt 2024-04-25 23:28:24 +02:00
silverwind 7e40149415
add ctx.HTMLString 2024-04-25 23:27:24 +02:00
wxiaoguang c72e1a7abb
Use strict protocol check when redirect (#29642) 2024-03-07 02:03:41 +00:00
6543 274c0aea2e
Let ctx.FormOptionalBool() return optional.Option[bool] (#29461)
just some refactoring bits towards replacing **util.OptionalBool** with
**optional.Option[bool]**
2024-02-28 13:39:12 +08:00
Lunny Xiao 29f149bd9f
Move context from modules to services (#29440)
Since `modules/context` has to depend on `models` and many other
packages, it should be moved from `modules/context` to
`services/context` according to design principles. There is no logic
code change on this PR, only move packages.

- Move `code.gitea.io/gitea/modules/context` to
`code.gitea.io/gitea/services/context`
- Move `code.gitea.io/gitea/modules/contexttest` to
`code.gitea.io/gitea/services/contexttest` because of depending on
context
- Move `code.gitea.io/gitea/modules/upload` to
`code.gitea.io/gitea/services/context/upload` because of depending on
context
2024-02-27 08:12:22 +01:00