You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
3 months ago
..
admin Refactor DateUtils and merge TimeSince (#32409) 3 months ago
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 10 months ago
base Refactor language menu and dom utils (#32450) 3 months ago
custom Add footer extra links template (#9576) 5 years ago
devtest Refactor DateUtils and merge TimeSince (#32409) 3 months ago
explore Refactor template ctx and render utils (#32422) 3 months ago
mail Remove unnecessary SanitizeHTML from code (#29575) 11 months ago
org Refactor template ctx and render utils (#32422) 3 months ago
package Refactor template ctx and render utils (#32422) 3 months ago
projects Refactor template ctx and render utils (#32422) 3 months ago
repo Refactor sidebar assignee&milestone&project selectors (#32465) 3 months ago
shared Refactor template ctx and render utils (#32422) 3 months ago
status Remove urls from translations (#31950) 5 months ago
swagger Refactor render system (#32492) 3 months ago
user Refactor template ctx and render utils (#32422) 3 months ago
webhook Fix incorrect tailwind migration (#30007) 10 months ago
home.tmpl Remove urls from translations (#31950) 5 months ago
install.tmpl Use forum.gitea.com instead of old URL (#31989) 5 months ago
post-install.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago