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/routers/web
wxiaoguang e71eb8930a
Refactor some Str2html code (#29397)
This PR touches the most interesting part of the "template refactoring".

1. Unclear variable type. Especially for "web/feed/convert.go":
sometimes it uses text, sometimes it uses HTML.
2. Assign text content to "RenderedContent" field, for example: `
project.RenderedContent = project.Description` in web/org/projects.go
3. Assign rendered content to text field, for example: `r.Note =
rendered content` in web/repo/release.go
4. (possible) Incorrectly calling `{{Str2html
.PackageDescriptor.Metadata.ReleaseNotes}}` in
package/content/nuget.tmpl, I guess the name Str2html misleads
developers to use it to "render string to html", but it only sanitizes.
if ReleaseNotes really contains HTML, then this is not a problem.
11 months ago
..
admin migrate some more "OptionalBool" to "Option[bool]" (#29479) 11 months ago
auth Allow to change primary email before account activation (#29412) 11 months ago
devtest Move context from modules to services (#29440) 11 months ago
events Move context from modules to services (#29440) 11 months ago
explore migrate some more "OptionalBool" to "Option[bool]" (#29479) 11 months ago
feed Refactor some Str2html code (#29397) 11 months ago
healthcheck Always enable caches (#28527) 1 year ago
misc Move context from modules to services (#29440) 11 months ago
org Refactor some Str2html code (#29397) 11 months ago
repo Refactor some Str2html code (#29397) 11 months ago
shared migrate some more "OptionalBool" to "Option[bool]" (#29479) 11 months ago
user migrate some more "OptionalBool" to "Option[bool]" (#29479) 11 months ago
base.go Fix panic in storageHandler (#27446) 1 year ago
githttp.go Move context from modules to services (#29440) 11 months ago
goget.go Move context from modules to services (#29440) 11 months ago
home.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 11 months ago
metrics.go
nodeinfo.go Move context from modules to services (#29440) 11 months ago
passkey.go Move context from modules to services (#29440) 11 months ago
swagger_json.go Move context from modules to services (#29440) 11 months ago
web.go Implement actions badge svgs (#28102) 11 months ago
webfinger.go Move context from modules to services (#29440) 11 months ago