0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-12 14:31:24 +01:00
gitea/models/repo
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.
2024-03-01 07:11:51 +00:00
..
archiver.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
attachment_test.go
attachment.go
avatar.go
collaboration_test.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
collaboration.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
fork_test.go
fork.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
git.go Add merge style fast-forward-only (#28954) 2024-02-12 23:37:23 +01:00
issue.go
language_stats.go
main_test.go
mirror.go
pushmirror_test.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
pushmirror.go Don't run push mirrors for archived repos (#27140) 2024-01-24 02:32:57 +00:00
redirect_test.go
redirect.go
release_test.go
release.go Refactor some Str2html code (#29397) 2024-03-01 07:11:51 +00:00
repo_indexer.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
repo_list_test.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
repo_list.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
repo_test.go
repo_unit_test.go
repo_unit.go Add merge style fast-forward-only (#28954) 2024-02-12 23:37:23 +01:00
repo.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
search.go
star_test.go
star.go
topic_test.go
topic.go Fix non-alphabetic sorting of repo topics (#28938) 2024-01-26 14:15:57 +00:00
update.go Move some repository transfer functions to service layer (#28855) 2024-02-05 06:17:23 +00:00
upload.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
user_repo_test.go
user_repo.go Users with read permission of pull requests can be assigned too (#27263) 2024-02-24 14:14:48 +00:00
watch_test.go
watch.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
wiki_test.go
wiki.go