gitea/templates
wxiaoguang 3f9c3e7bc3
Refactor render system (#32492)
There were too many patches to the Render system, it's really difficult
to make further improvements.

This PR clears the legacy problems and fix TODOs.

1. Rename `RenderContext.Type` to `RenderContext.MarkupType` to clarify
its usage.
2. Use `ContentMode` to replace `meta["mode"]` and `IsWiki`, to clarify
the rendering behaviors.
3. Use "wiki" mode instead of "mode=gfm + wiki=true"
4. Merge `renderByType` and `renderByFile`
5. Add more comments

----

The problem of "mode=document": in many cases it is not set, so many
non-comment places use comment's hard line break incorrectly
2024-11-14 05:02:11 +00:00
..
admin Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Refactor language menu and dom utils (#32450) 2024-11-08 14:04:24 +08:00
custom
devtest Refactor DateUtils and merge TimeSince (#32409) 2024-11-04 11:30:00 +00:00
explore Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
mail Remove unnecessary SanitizeHTML from code (#29575) 2024-03-04 12:02:45 +00:00
org Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
package Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
projects Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
repo Refactor sidebar assignee&milestone&project selectors (#32465) 2024-11-11 04:07:54 +08:00
shared Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
status Remove urls from translations (#31950) 2024-09-02 18:36:24 +00:00
swagger Refactor render system (#32492) 2024-11-14 05:02:11 +00:00
user Refactor template ctx and render utils (#32422) 2024-11-05 14:04:26 +08:00
webhook Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
home.tmpl Remove urls from translations (#31950) 2024-09-02 18:36:24 +00:00
install.tmpl Use forum.gitea.com instead of old URL (#31989) 2024-09-06 07:20:30 +00:00
post-install.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 2023-09-25 08:56:50 +00:00