forgejo/templates/repo
wxiaoguang 68099f2f00
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.

(cherry picked from commit e71eb8930a5d0f60874b038c223498b41ad65592)

Conflicts:
	modules/templates/util_string.go
	trivial context conflict
2024-03-06 12:10:44 +08:00
..
actions Merge pull request '[UI] Actions: Link to Workflow in View' (#1866) from n0toose/forgejo:forgejo-add-workflow-link into forgejo 2024-02-28 17:28:16 +00:00
branch
cite
code Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-26 22:30:27 +01:00
diff Refactor some Str2html code (#29397) 2024-03-06 12:10:44 +08:00
editor enforce maxlength in frontend (#29389) 2024-02-26 22:30:27 +01:00
find
graph
issue Refactor some Str2html code (#29397) 2024-03-06 12:10:44 +08:00
migrate [I18N] Improve English strings & consistency 2024-02-27 17:42:59 +00:00
projects
pulls Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-26 22:30:26 +01:00
release Refactor some Str2html code (#29397) 2024-03-06 12:10:44 +08:00
settings [I18N] Improve English strings & consistency 2024-02-27 17:42:59 +00:00
tag
wiki Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-26 22:30:27 +01:00
activity.tmpl Implement recent commits graph (#29210) 2024-02-26 22:30:26 +01:00
admin_flags.tmpl
blame.tmpl
branch_dropdown.tmpl
clone_buttons.tmpl
clone_script.tmpl Fix URL calculation in clone input box (#29470) 2024-03-06 12:10:44 +08:00
code_frequency.tmpl Implement code frequency graph (#29191) 2024-02-26 22:30:26 +01:00
commit_load_branches_and_tags.tmpl
commit_page.tmpl Refactor Safe modifier (#29392) 2024-02-26 22:30:27 +01:00
commit_status.tmpl
commit_statuses.tmpl
commits.tmpl
commits_list.tmpl
commits_list_small.tmpl
commits_table.tmpl
contributors.tmpl
create.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-26 22:30:26 +01:00
create_helper.tmpl Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-26 22:30:27 +01:00
empty.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-26 22:30:26 +01:00
file_info.tmpl
flags.tmpl
forks.tmpl
graph.tmpl
header.tmpl Make settings tab not active when on repository units tab 2024-02-28 21:17:53 -06:00
header_fork.tmpl Fix the Fork button in repo headers 2024-02-27 18:36:37 +00:00
home.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-26 22:30:26 +01:00
icon.tmpl
latest_commit.tmpl
navbar.tmpl Implement recent commits graph (#29210) 2024-02-26 22:30:26 +01:00
packages.tmpl
pulse.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-26 22:30:26 +01:00
recent_commits.tmpl Implement recent commits graph (#29210) 2024-02-26 22:30:26 +01:00
release_tag_header.tmpl Apply compact padding to small buttons with svg icons (#29471) 2024-03-06 12:10:44 +08:00
search.tmpl Remove incorrect and unnecessary Escape from templates (#29394) 2024-02-26 22:30:27 +01:00
search_name.tmpl
shabox_badge.tmpl
star_unstar.tmpl
sub_menu.tmpl
unicode_escape_prompt.tmpl
upload.tmpl
user_cards.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-26 22:30:26 +01:00
view_file.tmpl [FEAT] Show follow symlink button 2024-03-02 17:58:09 +01:00
view_list.tmpl
watch_unwatch.tmpl
watchers.tmpl