loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

templates: remove superfluous SanitizeHTML

Introduced by Rename Str2html to SanitizeHTML and clarify its behavior (followup)

+77 -77
+1 -1
templates/admin/dashboard.tmpl
··· 2 2 <div class="admin-setting-content"> 3 3 {{if .NeedUpdate}} 4 4 <div class="ui negative message flash-error"> 5 - <p>{{(ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer) | SanitizeHTML}}</p> 5 + <p>{{ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer}}</p> 6 6 </div> 7 7 {{end}} 8 8 <h4 class="ui top attached header">
+4 -4
templates/home.tmpl
··· 17 17 {{svg "octicon-flame"}} {{ctx.Locale.Tr "startpage.install"}} 18 18 </h1> 19 19 <p class="large"> 20 - {{ctx.Locale.Tr "startpage.install_desc" | SanitizeHTML}} 20 + {{ctx.Locale.Tr "startpage.install_desc"}} 21 21 </p> 22 22 </div> 23 23 <div class="eight wide center column"> ··· 25 25 {{svg "octicon-device-desktop"}} {{ctx.Locale.Tr "startpage.platform"}} 26 26 </h1> 27 27 <p class="large"> 28 - {{ctx.Locale.Tr "startpage.platform_desc" | SanitizeHTML}} 28 + {{ctx.Locale.Tr "startpage.platform_desc"}} 29 29 </p> 30 30 </div> 31 31 </div> ··· 35 35 {{svg "octicon-rocket"}} {{ctx.Locale.Tr "startpage.lightweight"}} 36 36 </h1> 37 37 <p class="large"> 38 - {{ctx.Locale.Tr "startpage.lightweight_desc" | SanitizeHTML}} 38 + {{ctx.Locale.Tr "startpage.lightweight_desc"}} 39 39 </p> 40 40 </div> 41 41 <div class="eight wide center column"> ··· 43 43 {{svg "octicon-code"}} {{ctx.Locale.Tr "startpage.license"}} 44 44 </h1> 45 45 <p class="large"> 46 - {{ctx.Locale.Tr "startpage.license_desc" | SanitizeHTML}} 46 + {{ctx.Locale.Tr "startpage.license_desc"}} 47 47 </p> 48 48 </div> 49 49 </div>
+2 -2
templates/mail/auth/activate.tmpl
··· 8 8 9 9 {{$activate_url := printf "%suser/activate?code=%s" AppUrl (QueryEscape .Code)}} 10 10 <body> 11 - <p>{{.locale.Tr "mail.activate_account.text_1" (.DisplayName|DotEscape) AppName | SanitizeHTML}}</p><br> 12 - <p>{{.locale.Tr "mail.activate_account.text_2" .ActiveCodeLives | SanitizeHTML}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br> 11 + <p>{{.locale.Tr "mail.activate_account.text_1" (.DisplayName|DotEscape) AppName}}</p><br> 12 + <p>{{.locale.Tr "mail.activate_account.text_2" .ActiveCodeLives}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br> 13 13 <p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p> 14 14 15 15 <p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
+2 -2
templates/mail/auth/activate_email.tmpl
··· 8 8 9 9 {{$activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl (QueryEscape .Code) (QueryEscape .Email)}} 10 10 <body> 11 - <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape) | SanitizeHTML}}</p><br> 12 - <p>{{.locale.Tr "mail.activate_email.text" .ActiveCodeLives | SanitizeHTML}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br> 11 + <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br> 12 + <p>{{.locale.Tr "mail.activate_email.text" .ActiveCodeLives}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br> 13 13 <p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p> 14 14 15 15 <p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
+1 -1
templates/mail/auth/register_notify.tmpl
··· 8 8 9 9 {{$set_pwd_url := printf "%[1]suser/forgot_password" AppUrl}} 10 10 <body> 11 - <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape) | SanitizeHTML}}</p><br> 11 + <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br> 12 12 <p>{{.locale.Tr "mail.register_notify.text_1" AppName}}</p><br> 13 13 <p>{{.locale.Tr "mail.register_notify.text_2" .Username}}</p><p><a href="{{AppUrl}}user/login">{{AppUrl}}user/login</a></p><br> 14 14 <p>{{.locale.Tr "mail.register_notify.text_3" $set_pwd_url}}</p><br>
+2 -2
templates/mail/auth/reset_passwd.tmpl
··· 8 8 9 9 {{$recover_url := printf "%suser/recover_account?code=%s" AppUrl (QueryEscape .Code)}} 10 10 <body> 11 - <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape) | SanitizeHTML}}</p><br> 12 - <p>{{.locale.Tr "mail.reset_password.text" .ResetPwdCodeLives | SanitizeHTML}}</p><p><a href="{{$recover_url}}">{{$recover_url}}</a></p><br> 11 + <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br> 12 + <p>{{.locale.Tr "mail.reset_password.text" .ResetPwdCodeLives}}</p><p><a href="{{$recover_url}}">{{$recover_url}}</a></p><br> 13 13 <p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p> 14 14 15 15 <p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
+1 -1
templates/mail/issue/default.tmpl
··· 16 16 </head> 17 17 18 18 <body> 19 - {{if .IsMention}}<p>{{.locale.Tr "mail.issue.x_mentioned_you" .Doer.Name | SanitizeHTML}}</p>{{end}} 19 + {{if .IsMention}}<p>{{.locale.Tr "mail.issue.x_mentioned_you" .Doer.Name}}</p>{{end}} 20 20 {{if eq .ActionName "push"}} 21 21 <p> 22 22 {{if .Comment.IsForcePush}}
+2 -2
templates/mail/notify/admin_new_user.tmpl
··· 13 13 14 14 <body> 15 15 <ul> 16 - <h3>{{.Locale.Tr "mail.admin.new_user.user_info" | SanitizeHTML}}: <a href="{{.NewUserUrl}}">@{{.NewUser.Name}}</a></h3> 17 - <li>{{.Locale.Tr "admin.users.created" | SanitizeHTML}}: {{DateTime "full" .NewUser.CreatedUnix}}</li> 16 + <h3>{{.Locale.Tr "mail.admin.new_user.user_info"}}: <a href="{{.NewUserUrl}}">@{{.NewUser.Name}}</a></h3> 17 + <li>{{.Locale.Tr "admin.users.created"}}: {{DateTime "full" .NewUser.CreatedUnix}}</li> 18 18 </ul> 19 19 <p> {{.Body | SanitizeHTML}} </p> 20 20 </body>
+1 -1
templates/mail/team_invite.tmpl
··· 5 5 <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no"> 6 6 </head> 7 7 <body> 8 - <p>{{.locale.Tr "mail.team_invite.text_1" (DotEscape .Inviter.DisplayName) (DotEscape .Team.Name) (DotEscape .Organization.DisplayName) | SanitizeHTML}}</p> 8 + <p>{{.locale.Tr "mail.team_invite.text_1" (DotEscape .Inviter.DisplayName) (DotEscape .Team.Name) (DotEscape .Organization.DisplayName)}}</p> 9 9 <p>{{.locale.Tr "mail.team_invite.text_2"}}</p><p><a href="{{.InviteURL}}">{{.InviteURL}}</a></p> 10 10 <p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p> 11 11 <p>{{.locale.Tr "mail.team_invite.text_3" .Invite.Email}}</p>
+1 -1
templates/org/settings/delete.tmpl
··· 6 6 </h4> 7 7 <div class="ui attached error segment"> 8 8 <div class="ui red message"> 9 - <p class="text left">{{svg "octicon-alert"}} {{ctx.Locale.Tr "org.settings.delete_prompt" | SanitizeHTML}}</p> 9 + <p class="text left">{{svg "octicon-alert"}} {{ctx.Locale.Tr "org.settings.delete_prompt"}}</p> 10 10 </div> 11 11 <form class="ui form ignore-dirty" id="delete-form" action="{{.Link}}" method="post"> 12 12 {{.CsrfTokenHtml}}
+1 -1
templates/org/settings/labels.tmpl
··· 2 2 <div class="org-setting-content"> 3 3 <div class="gt-df gt-ac"> 4 4 <div class="gt-f1"> 5 - {{ctx.Locale.Tr "org.settings.labels_desc" | SanitizeHTML}} 5 + {{ctx.Locale.Tr "org.settings.labels_desc"}} 6 6 </div> 7 7 <button class="ui small primary new-label button">{{ctx.Locale.Tr "repo.issues.new_label"}}</button> 8 8 </div>
+1 -1
templates/org/team/invite.tmpl
··· 7 7 {{ctx.AvatarUtils.Avatar .Organization 140}} 8 8 </div> 9 9 <div class="content"> 10 - <div class="header">{{ctx.Locale.Tr "org.teams.invite.title" .Team.Name .Organization.Name | SanitizeHTML}}</div> 10 + <div class="header">{{ctx.Locale.Tr "org.teams.invite.title" .Team.Name .Organization.Name}}</div> 11 11 <div class="meta">{{ctx.Locale.Tr "org.teams.invite.by" .Inviter.Name}}</div> 12 12 <div class="description">{{ctx.Locale.Tr "org.teams.invite.description"}}</div> 13 13 </div>
+2 -2
templates/org/team/new.tmpl
··· 32 32 <div class="ui radio checkbox"> 33 33 <input type="radio" name="repo_access" value="specific" {{if not .Team.IncludesAllRepositories}}checked{{end}}> 34 34 <label>{{ctx.Locale.Tr "org.teams.specific_repositories"}}</label> 35 - <span class="help">{{ctx.Locale.Tr "org.teams.specific_repositories_helper" | SanitizeHTML}}</span> 35 + <span class="help">{{ctx.Locale.Tr "org.teams.specific_repositories_helper"}}</span> 36 36 </div> 37 37 </div> 38 38 <div class="field"> 39 39 <div class="ui radio checkbox"> 40 40 <input type="radio" name="repo_access" value="all" {{if .Team.IncludesAllRepositories}}checked{{end}}> 41 41 <label>{{ctx.Locale.Tr "org.teams.all_repositories"}}</label> 42 - <span class="help">{{ctx.Locale.Tr "org.teams.all_repositories_helper" | SanitizeHTML}}</span> 42 + <span class="help">{{ctx.Locale.Tr "org.teams.all_repositories_helper"}}</span> 43 43 </div> 44 44 </div> 45 45
+5 -5
templates/org/team/sidebar.tmpl
··· 27 27 </div> 28 28 {{if eq .Team.LowerName "owners"}} 29 29 <div class="item"> 30 - {{ctx.Locale.Tr "org.teams.owners_permission_desc" | SanitizeHTML}} 30 + {{ctx.Locale.Tr "org.teams.owners_permission_desc"}} 31 31 </div> 32 32 {{else}} 33 33 <div class="item"> 34 34 <h3>{{ctx.Locale.Tr "org.team_access_desc"}}</h3> 35 35 <ul> 36 36 {{if .Team.IncludesAllRepositories}} 37 - <li>{{ctx.Locale.Tr "org.teams.all_repositories" | SanitizeHTML}}</li> 37 + <li>{{ctx.Locale.Tr "org.teams.all_repositories"}}</li> 38 38 {{else}} 39 - <li>{{ctx.Locale.Tr "org.teams.specific_repositories" | SanitizeHTML}}</li> 39 + <li>{{ctx.Locale.Tr "org.teams.specific_repositories"}}</li> 40 40 {{end}} 41 41 {{if .Team.CanCreateOrgRepo}} 42 42 <li>{{ctx.Locale.Tr "org.teams.can_create_org_repo"}}</li> ··· 44 44 </ul> 45 45 {{if (eq .Team.AccessMode 2)}} 46 46 <h3>{{ctx.Locale.Tr "org.settings.permission"}}</h3> 47 - {{ctx.Locale.Tr "org.teams.write_permission_desc" | SanitizeHTML}} 47 + {{ctx.Locale.Tr "org.teams.write_permission_desc"}} 48 48 {{else if (eq .Team.AccessMode 3)}} 49 49 <h3>{{ctx.Locale.Tr "org.settings.permission"}}</h3> 50 - {{ctx.Locale.Tr "org.teams.admin_permission_desc" | SanitizeHTML}} 50 + {{ctx.Locale.Tr "org.teams.admin_permission_desc"}} 51 51 {{else}} 52 52 <table class="ui table"> 53 53 <thead>
+2 -2
templates/repo/blame.tmpl
··· 2 2 {{$revsFileLink := URLJoin .RepoLink "src" .BranchNameSubURL "/.git-blame-ignore-revs"}} 3 3 {{if .UsesIgnoreRevs}} 4 4 <div class="ui info message"> 5 - <p>{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink (print $revsFileLink "?bypass-blame-ignore=true") | SanitizeHTML}}</p> 5 + <p>{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink (print $revsFileLink "?bypass-blame-ignore=true")}}</p> 6 6 </div> 7 7 {{else}} 8 8 <div class="ui error message"> 9 - <p>{{ctx.Locale.Tr "repo.blame.ignore_revs.failed" $revsFileLink | SanitizeHTML}}</p> 9 + <p>{{ctx.Locale.Tr "repo.blame.ignore_revs.failed" $revsFileLink}}</p> 10 10 </div> 11 11 {{end}} 12 12 {{end}}
+1 -1
templates/repo/branch/list.tmpl
··· 210 210 {{ctx.Locale.Tr "repo.branch.delete_html"}} <span class="name"></span> 211 211 </div> 212 212 <div class="content"> 213 - <p>{{ctx.Locale.Tr "repo.branch.delete_desc" | SanitizeHTML}}</p> 213 + <p>{{ctx.Locale.Tr "repo.branch.delete_desc"}}</p> 214 214 </div> 215 215 {{template "base/modal_actions_confirm" .}} 216 216 </div>
+1 -1
templates/repo/create.tmpl
··· 158 158 {{end}} 159 159 </div> 160 160 </div> 161 - <span class="help">{{ctx.Locale.Tr "repo.license_helper_desc" "https://choosealicense.com/" | SanitizeHTML}}</span> 161 + <span class="help">{{ctx.Locale.Tr "repo.license_helper_desc" "https://choosealicense.com/"}}</span> 162 162 </div> 163 163 164 164 <div class="inline field">
+1 -1
templates/repo/diff/box.tmpl
··· 19 19 {{end}} 20 20 {{if not .DiffNotAvailable}} 21 21 <div class="diff-detail-stats gt-df gt-ac gt-fw"> 22 - {{svg "octicon-diff" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion | SanitizeHTML}} 22 + {{svg "octicon-diff" 16 "gt-mr-2"}}{{ctx.Locale.Tr "repo.diff.stats_desc" .Diff.NumFiles .Diff.TotalAddition .Diff.TotalDeletion}} 23 23 </div> 24 24 {{end}} 25 25 </div>
+1 -1
templates/repo/diff/stats.tmpl
··· 1 1 {{Eval .file.Addition "+" .file.Deletion}} 2 - <span class="diff-stats-bar gt-mx-3" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.stats_desc_file" (Eval .file.Addition "+" .file.Deletion) .file.Addition .file.Deletion | SanitizeHTML}}"> 2 + <span class="diff-stats-bar gt-mx-3" data-tooltip-content="{{ctx.Locale.Tr "repo.diff.stats_desc_file" (Eval .file.Addition "+" .file.Deletion) .file.Addition .file.Deletion}}"> 3 3 {{/* if the denominator is zero, then the float result is "width: NaNpx", as before, it just works */}} 4 4 <div class="diff-stats-add-bar" style="width: {{Eval 100 "*" .file.Addition "/" "(" .file.Addition "+" .file.Deletion "+" 0.0 ")"}}%"></div> 5 5 </span>
+1 -1
templates/repo/empty.tmpl
··· 24 24 </h4> 25 25 <div class="ui attached guide table segment empty-repo-guide"> 26 26 <div class="item"> 27 - <h3>{{ctx.Locale.Tr "repo.clone_this_repo"}} <small>{{ctx.Locale.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | SanitizeHTML}}</small></h3> 27 + <h3>{{ctx.Locale.Tr "repo.clone_this_repo"}} <small>{{ctx.Locale.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository"}}</small></h3> 28 28 29 29 <div class="repo-button-row"> 30 30 {{if and .CanWriteCode (not .Repository.IsArchived)}}
+1 -1
templates/repo/issue/labels/label_list.tmpl
··· 61 61 <li class="item"> 62 62 <div class="ui grid middle aligned"> 63 63 <div class="ten wide column"> 64 - {{ctx.Locale.Tr "repo.org_labels_desc" | SanitizeHTML}} 64 + {{ctx.Locale.Tr "repo.org_labels_desc"}} 65 65 {{if .IsOrganizationOwner}} 66 66 <a href="{{.OrganizationLink}}/settings/labels">({{ctx.Locale.Tr "repo.org_labels_desc_manage"}})</a>: 67 67 {{end}}
+1 -1
templates/repo/issue/view_content.tmpl
··· 181 181 {{ctx.Locale.Tr "repo.branch.delete" .HeadTarget}} 182 182 </div> 183 183 <div class="content"> 184 - <p>{{ctx.Locale.Tr "repo.branch.delete_desc" | SanitizeHTML}}</p> 184 + <p>{{ctx.Locale.Tr "repo.branch.delete_desc"}}</p> 185 185 </div> 186 186 {{template "base/modal_actions_confirm" .}} 187 187 </div>
+1 -1
templates/repo/migrate/options.tmpl
··· 17 17 <span id="lfs_settings" class="gt-hidden">(<a id="lfs_settings_show" href="#">{{ctx.Locale.Tr "repo.settings.advanced_settings"}}</a>)</span> 18 18 </div> 19 19 <div id="lfs_endpoint" class="gt-hidden"> 20 - <span class="help">{{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description" "https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#server-discovery" | SanitizeHTML}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description.local"}}{{end}}</span> 20 + <span class="help">{{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description" "https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#server-discovery"}}{{if .ContextUser.CanImportLocal}} {{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.description.local"}}{{end}}</span> 21 21 <div class="inline field {{if .Err_LFSEndpoint}}error{{end}}"> 22 22 <label>{{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.label"}}</label> 23 23 <input name="lfs_endpoint" value="{{.lfs_endpoint}}" placeholder="{{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.placeholder"}}">
+1 -1
templates/repo/release/list.tmpl
··· 54 54 <span class="time">{{TimeSinceUnix $release.CreatedUnix ctx.Locale}}</span> 55 55 {{end}} 56 56 {{if and (not $release.IsDraft) ($.Permission.CanRead $.UnitTypeCode)}} 57 - | <span class="ahead"><a href="{{$.RepoLink}}/compare/{{$release.TagName | PathEscapeSegments}}...{{$release.TargetBehind | PathEscapeSegments}}">{{ctx.Locale.Tr "repo.release.ahead.commits" $release.NumCommitsBehind | SanitizeHTML}}</a> {{ctx.Locale.Tr "repo.release.ahead.target" $release.TargetBehind}}</span> 57 + | <span class="ahead"><a href="{{$.RepoLink}}/compare/{{$release.TagName | PathEscapeSegments}}...{{$release.TargetBehind | PathEscapeSegments}}">{{ctx.Locale.Tr "repo.release.ahead.commits" $release.NumCommitsBehind}}</a> {{ctx.Locale.Tr "repo.release.ahead.target" $release.TargetBehind}}</span> 58 58 {{end}} 59 59 </p> 60 60 <div class="markup desc">
+1 -1
templates/repo/settings/deploy_keys.tmpl
··· 31 31 <label for="is_writable"> 32 32 {{ctx.Locale.Tr "repo.settings.is_writable"}} 33 33 </label> 34 - <small style="padding-left: 26px;">{{ctx.Locale.Tr "repo.settings.is_writable_info" | SanitizeHTML}}</small> 34 + <small style="padding-left: 26px;">{{ctx.Locale.Tr "repo.settings.is_writable_info"}}</small> 35 35 </div> 36 36 </div> 37 37 <button class="ui primary button">
+1 -1
templates/repo/settings/githooks.tmpl
··· 6 6 <div class="ui attached segment"> 7 7 <div class="ui list"> 8 8 <div class="item"> 9 - {{ctx.Locale.Tr "repo.settings.githooks_desc" | SanitizeHTML}} 9 + {{ctx.Locale.Tr "repo.settings.githooks_desc"}} 10 10 </div> 11 11 {{range .Hooks}} 12 12 <div class="item truncated-item-container">
+1 -1
templates/repo/settings/options.tmpl
··· 191 191 <div class="field {{if .Err_LFSEndpoint}}error{{end}}"> 192 192 <label for="mirror_lfs_endpoint">{{ctx.Locale.Tr "repo.mirror_lfs_endpoint"}}</label> 193 193 <input id="mirror_lfs_endpoint" name="mirror_lfs_endpoint" value="{{.PullMirror.LFSEndpoint}}" placeholder="{{ctx.Locale.Tr "repo.migrate_options_lfs_endpoint.placeholder"}}"> 194 - <p class="help">{{ctx.Locale.Tr "repo.mirror_lfs_endpoint_desc" "https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#server-discovery" | SanitizeHTML}}</p> 194 + <p class="help">{{ctx.Locale.Tr "repo.mirror_lfs_endpoint_desc" "https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md#server-discovery"}}</p> 195 195 </div> 196 196 {{end}} 197 197 <div class="field">
+2 -2
templates/repo/settings/units/issues.tmpl
··· 61 61 <div class="field"> 62 62 <label for="tracker_url_format">{{ctx.Locale.Tr "repo.settings.tracker_url_format"}}</label> 63 63 <input id="tracker_url_format" name="tracker_url_format" type="url" value="{{(.Repository.MustGetUnit $.Context $.UnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerFormat}}" placeholder="https://github.com/{user}/{repo}/issues/{index}"> 64 - <p class="help">{{ctx.Locale.Tr "repo.settings.tracker_url_format_desc" | SanitizeHTML}}</p> 64 + <p class="help">{{ctx.Locale.Tr "repo.settings.tracker_url_format_desc"}}</p> 65 65 </div> 66 66 <div class="inline fields"> 67 67 <label for="issue_style">{{ctx.Locale.Tr "repo.settings.tracker_issue_style"}}</label> ··· 89 89 <div class="field {{if ne $externalTrackerStyle "regexp"}}disabled{{end}}" id="tracker-issue-style-regex-box"> 90 90 <label for="external_tracker_regexp_pattern">{{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp_pattern"}}</label> 91 91 <input id="external_tracker_regexp_pattern" name="external_tracker_regexp_pattern" value="{{(.Repository.MustGetUnit $.Context $.UnitTypeExternalTracker).ExternalTrackerConfig.ExternalTrackerRegexpPattern}}"> 92 - <p class="help">{{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp_pattern_desc" | SanitizeHTML}}</p> 92 + <p class="help">{{ctx.Locale.Tr "repo.settings.tracker_issue_style.regexp_pattern_desc"}}</p> 93 93 </div> 94 94 </div> 95 95 </div>
+1 -1
templates/repo/settings/webhook/dingtalk.tmpl
··· 1 1 {{if eq .HookType "dingtalk"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://dingtalk.com" (ctx.Locale.Tr "repo.settings.web_hook_name_dingtalk") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://dingtalk.com" (ctx.Locale.Tr "repo.settings.web_hook_name_dingtalk")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/dingtalk/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{.CsrfTokenHtml}} 5 5 <div class="required field {{if .Err_PayloadURL}}error{{end}}">
+1 -1
templates/repo/settings/webhook/discord.tmpl
··· 1 1 {{if eq .HookType "discord"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://discord.com" (ctx.Locale.Tr "repo.settings.web_hook_name_discord") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://discord.com" (ctx.Locale.Tr "repo.settings.web_hook_name_discord")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/discord/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{.CsrfTokenHtml}} 5 5 <div class="required field {{if .Err_PayloadURL}}error{{end}}">
+2 -2
templates/repo/settings/webhook/feishu.tmpl
··· 1 1 {{if eq .HookType "feishu"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://feishu.cn" (ctx.Locale.Tr "repo.settings.web_hook_name_feishu") | SanitizeHTML}}</p> 3 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://larksuite.com" (ctx.Locale.Tr "repo.settings.web_hook_name_larksuite") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://feishu.cn" (ctx.Locale.Tr "repo.settings.web_hook_name_feishu")}}</p> 3 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://larksuite.com" (ctx.Locale.Tr "repo.settings.web_hook_name_larksuite")}}</p> 4 4 <form class="ui form" action="{{.BaseLink}}/feishu/{{or .Webhook.ID "new"}}" method="post"> 5 5 {{.CsrfTokenHtml}} 6 6 <div class="required field {{if .Err_PayloadURL}}error{{end}}">
+1 -1
templates/repo/settings/webhook/forgejo.tmpl
··· 1 1 {{if eq .HookType "forgejo"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://forgejo.org/docs/latest/user/webhooks/" (ctx.Locale.Tr "repo.settings.web_hook_name_forgejo") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://forgejo.org/docs/latest/user/webhooks/" (ctx.Locale.Tr "repo.settings.web_hook_name_forgejo")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/forgejo/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{template "base/disable_form_autofill"}} 5 5 {{.CsrfTokenHtml}}
+1 -1
templates/repo/settings/webhook/gitea.tmpl
··· 1 1 {{if eq .HookType "gitea"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://forgejo.org/docs/latest/user/webhooks/" (ctx.Locale.Tr "repo.settings.web_hook_name_gitea") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://forgejo.org/docs/latest/user/webhooks/" (ctx.Locale.Tr "repo.settings.web_hook_name_gitea")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/gitea/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{template "base/disable_form_autofill"}} 5 5 {{.CsrfTokenHtml}}
+1 -1
templates/repo/settings/webhook/gogs.tmpl
··· 1 1 {{if eq .HookType "gogs"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://forgejo.org/docs/latest/user/webhooks/" (ctx.Locale.Tr "repo.settings.web_hook_name_gogs") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://forgejo.org/docs/latest/user/webhooks/" (ctx.Locale.Tr "repo.settings.web_hook_name_gogs")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/gogs/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{template "base/disable_form_autofill"}} 5 5 {{.CsrfTokenHtml}}
+1 -1
templates/repo/settings/webhook/matrix.tmpl
··· 1 1 {{if eq .HookType "matrix"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://matrix.org/" (ctx.Locale.Tr "repo.settings.web_hook_name_matrix") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://matrix.org/" (ctx.Locale.Tr "repo.settings.web_hook_name_matrix")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/matrix/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{.CsrfTokenHtml}} 5 5 <div class="required field {{if .Err_HomeserverURL}}error{{end}}">
+1 -1
templates/repo/settings/webhook/msteams.tmpl
··· 1 1 {{if eq .HookType "msteams"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://teams.microsoft.com" (ctx.Locale.Tr "repo.settings.web_hook_name_msteams") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://teams.microsoft.com" (ctx.Locale.Tr "repo.settings.web_hook_name_msteams")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/msteams/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{.CsrfTokenHtml}} 5 5 <div class="required field {{if .Err_PayloadURL}}error{{end}}">
+1 -1
templates/repo/settings/webhook/packagist.tmpl
··· 1 1 {{if eq .HookType "packagist"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://packagist.org" (ctx.Locale.Tr "repo.settings.web_hook_name_packagist") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://packagist.org" (ctx.Locale.Tr "repo.settings.web_hook_name_packagist")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/packagist/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{.CsrfTokenHtml}} 5 5 <div class="required field {{if .Err_Username}}error{{end}}">
+4 -4
templates/repo/settings/webhook/settings.tmpl
··· 5 5 <div class="field"> 6 6 <div class="ui radio non-events checkbox"> 7 7 <input name="events" type="radio" value="push_only" {{if or $isNew .Webhook.PushOnly}}checked{{end}}> 8 - <label>{{ctx.Locale.Tr "repo.settings.event_push_only" | SanitizeHTML}}</label> 8 + <label>{{ctx.Locale.Tr "repo.settings.event_push_only"}}</label> 9 9 </div> 10 10 </div> 11 11 <div class="field"> 12 12 <div class="ui radio non-events checkbox"> 13 13 <input name="events" type="radio" value="send_everything" {{if .Webhook.SendEverything}}checked{{end}}> 14 - <label>{{ctx.Locale.Tr "repo.settings.event_send_everything" | SanitizeHTML}}</label> 14 + <label>{{ctx.Locale.Tr "repo.settings.event_send_everything"}}</label> 15 15 </div> 16 16 </div> 17 17 <div class="field"> 18 18 <div class="ui radio events checkbox"> 19 19 <input name="events" type="radio" value="choose_events" {{if .Webhook.ChooseEvents}}checked{{end}}> 20 - <label>{{ctx.Locale.Tr "repo.settings.event_choose" | SanitizeHTML}}</label> 20 + <label>{{ctx.Locale.Tr "repo.settings.event_choose"}}</label> 21 21 </div> 22 22 </div> 23 23 </div> ··· 255 255 <div class="field"> 256 256 <label for="branch_filter">{{ctx.Locale.Tr "repo.settings.branch_filter"}}</label> 257 257 <input id="branch_filter" name="branch_filter" type="text" value="{{or .Webhook.BranchFilter "*"}}"> 258 - <span class="help">{{ctx.Locale.Tr "repo.settings.branch_filter_desc" | SanitizeHTML}}</span> 258 + <span class="help">{{ctx.Locale.Tr "repo.settings.branch_filter_desc"}}</span> 259 259 </div> 260 260 261 261 <!-- Authorization Header -->
+1 -1
templates/repo/settings/webhook/slack.tmpl
··· 1 1 {{if eq .HookType "slack"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://slack.com" (ctx.Locale.Tr "repo.settings.web_hook_name_slack") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://slack.com" (ctx.Locale.Tr "repo.settings.web_hook_name_slack")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/slack/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{.CsrfTokenHtml}} 5 5 <div class="required field {{if .Err_PayloadURL}}error{{end}}">
+1 -1
templates/repo/settings/webhook/telegram.tmpl
··· 1 1 {{if eq .HookType "telegram"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://core.telegram.org/bots" (ctx.Locale.Tr "repo.settings.web_hook_name_telegram") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://core.telegram.org/bots" (ctx.Locale.Tr "repo.settings.web_hook_name_telegram")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/telegram/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{.CsrfTokenHtml}} 5 5 <div class="required field {{if .Err_BotToken}}error{{end}}">
+1 -1
templates/repo/settings/webhook/wechatwork.tmpl
··· 1 1 {{if eq .HookType "wechatwork"}} 2 - <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://work.weixin.qq.com" (ctx.Locale.Tr "repo.settings.web_hook_name_wechatwork") | SanitizeHTML}}</p> 2 + <p>{{ctx.Locale.Tr "repo.settings.add_web_hook_desc" "https://work.weixin.qq.com" (ctx.Locale.Tr "repo.settings.web_hook_name_wechatwork")}}</p> 3 3 <form class="ui form" action="{{.BaseLink}}/wechatwork/{{or .Webhook.ID "new"}}" method="post"> 4 4 {{.CsrfTokenHtml}} 5 5 <div class="required field {{if .Err_PayloadURL}}error{{end}}">
+3 -3
templates/repo/unicode_escape_prompt.tmpl
··· 5 5 <div class="header"> 6 6 {{ctx.Locale.Tr "repo.invisible_runes_header"}} 7 7 </div> 8 - <p>{{ctx.Locale.Tr "repo.invisible_runes_description" | SanitizeHTML}}</p> 8 + <p>{{ctx.Locale.Tr "repo.invisible_runes_description"}}</p> 9 9 {{if .EscapeStatus.HasAmbiguous}} 10 - <p>{{ctx.Locale.Tr "repo.ambiguous_runes_description" | SanitizeHTML}}</p> 10 + <p>{{ctx.Locale.Tr "repo.ambiguous_runes_description"}}</p> 11 11 {{end}} 12 12 </div> 13 13 {{else if .EscapeStatus.HasAmbiguous}} ··· 16 16 <div class="header"> 17 17 {{ctx.Locale.Tr "repo.ambiguous_runes_header"}} 18 18 </div> 19 - <p>{{ctx.Locale.Tr "repo.ambiguous_runes_description" | SanitizeHTML}}</p> 19 + <p>{{ctx.Locale.Tr "repo.ambiguous_runes_description"}}</p> 20 20 </div> 21 21 {{end}} 22 22 {{end}}
+1 -1
templates/status/500.tmpl
··· 45 45 {{end}} 46 46 <div class="center gt-mt-5"> 47 47 {{if or .SignedUser.IsAdmin .ShowFooterVersion}}<p>{{ctx.Locale.Tr "admin.config.app_ver"}}: {{AppVer}}</p>{{end}} 48 - {{if .SignedUser.IsAdmin}}<p>{{ctx.Locale.Tr "error.report_message" | SanitizeHTML}}</p>{{end}} 48 + {{if .SignedUser.IsAdmin}}<p>{{ctx.Locale.Tr "error.report_message"}}</p>{{end}} 49 49 </div> 50 50 </div> 51 51 </div>
+1 -1
templates/user/auth/finalize_openid.tmpl
··· 35 35 {{if .ShowRegistrationButton}} 36 36 <div class="inline field"> 37 37 <label></label> 38 - <a href="{{AppSubUrl}}/user/sign_up">{{ctx.Locale.Tr "auth.sign_up_now" | SanitizeHTML}}</a> 38 + <a href="{{AppSubUrl}}/user/sign_up">{{ctx.Locale.Tr "auth.sign_up_now"}}</a> 39 39 </div> 40 40 {{end}} 41 41 </form>
+2 -2
templates/user/auth/grant.tmpl
··· 9 9 {{template "base/alert" .}} 10 10 <p> 11 11 <b>{{ctx.Locale.Tr "auth.authorize_application_description"}}</b><br> 12 - {{ctx.Locale.Tr "auth.authorize_application_created_by" .ApplicationCreatorLinkHTML | SanitizeHTML}} 12 + {{ctx.Locale.Tr "auth.authorize_application_created_by" .ApplicationCreatorLinkHTML}} 13 13 </p> 14 14 </div> 15 15 <div class="ui attached segment"> 16 - <p>{{ctx.Locale.Tr "auth.authorize_redirect_notice" .ApplicationRedirectDomainHTML | SanitizeHTML}}</p> 16 + <p>{{ctx.Locale.Tr "auth.authorize_redirect_notice" .ApplicationRedirectDomainHTML}}</p> 17 17 </div> 18 18 <div class="ui attached segment"> 19 19 <form method="post" action="{{AppSubUrl}}/login/oauth/grant">
+3 -3
templates/user/auth/reset_passwd.tmpl
··· 34 34 <h4 class="ui dividing header"> 35 35 {{ctx.Locale.Tr "twofa"}} 36 36 </h4> 37 - <div class="ui warning visible message">{{ctx.Locale.Tr "settings.twofa_is_enrolled" | SanitizeHTML}}</div> 37 + <div class="ui warning visible message">{{ctx.Locale.Tr "settings.twofa_is_enrolled"}}</div> 38 38 {{if .scratch_code}} 39 39 <div class="required inline field {{if .Err_Token}}error{{end}}"> 40 40 <label for="token">{{ctx.Locale.Tr "auth.scratch_code"}}</label> ··· 53 53 <label></label> 54 54 <button class="ui primary button">{{ctx.Locale.Tr "auth.reset_password_helper"}}</button> 55 55 {{if and .has_two_factor (not .scratch_code)}} 56 - <a href="{{.Link}}?code={{.Code}}&amp;scratch_code=true">{{ctx.Locale.Tr "auth.use_scratch_code" | SanitizeHTML}}</a> 56 + <a href="{{.Link}}?code={{.Code}}&amp;scratch_code=true">{{ctx.Locale.Tr "auth.use_scratch_code"}}</a> 57 57 {{end}} 58 58 </div> 59 59 {{else}} 60 - <p class="center">{{ctx.Locale.Tr "auth.invalid_code_forgot_password" (printf "%s/user/forgot_password" AppSubUrl) | SanitizeHTML}}</p> 60 + <p class="center">{{ctx.Locale.Tr "auth.invalid_code_forgot_password" (printf "%s/user/forgot_password" AppSubUrl)}}</p> 61 61 {{end}} 62 62 </div> 63 63 </form>
+1 -1
templates/user/auth/signin_inner.tmpl
··· 48 48 {{if .ShowRegistrationButton}} 49 49 <div class="inline field"> 50 50 <label></label> 51 - <a href="{{AppSubUrl}}/user/sign_up">{{ctx.Locale.Tr "auth.sign_up_now" | SanitizeHTML}}</a> 51 + <a href="{{AppSubUrl}}/user/sign_up">{{ctx.Locale.Tr "auth.sign_up_now"}}</a> 52 52 </div> 53 53 {{end}} 54 54
+1 -1
templates/user/auth/twofa.tmpl
··· 17 17 <div class="inline field"> 18 18 <label></label> 19 19 <button class="ui primary button">{{ctx.Locale.Tr "auth.verify"}}</button> 20 - <a href="{{AppSubUrl}}/user/two_factor/scratch">{{ctx.Locale.Tr "auth.use_scratch_code" | SanitizeHTML}}</a> 20 + <a href="{{AppSubUrl}}/user/two_factor/scratch">{{ctx.Locale.Tr "auth.use_scratch_code"}}</a> 21 21 </div> 22 22 </div> 23 23 </form>
+2 -2
templates/user/settings/account.tmpl
··· 134 134 </h4> 135 135 <div class="ui attached error segment"> 136 136 <div class="ui red message"> 137 - <p class="text left">{{svg "octicon-alert"}} {{ctx.Locale.Tr "settings.delete_prompt" | SanitizeHTML}}</p> 137 + <p class="text left">{{svg "octicon-alert"}} {{ctx.Locale.Tr "settings.delete_prompt"}}</p> 138 138 {{if .UserDeleteWithComments}} 139 - <p class="text left gt-font-semibold">{{ctx.Locale.Tr "settings.delete_with_all_comments" .UserDeleteWithCommentsMaxTime | SanitizeHTML}}</p> 139 + <p class="text left gt-font-semibold">{{ctx.Locale.Tr "settings.delete_with_all_comments" .UserDeleteWithCommentsMaxTime}}</p> 140 140 {{end}} 141 141 </div> 142 142 <form class="ui form ignore-dirty" id="delete-form" action="{{AppSubUrl}}/user/settings/account/delete" method="post">
+1 -1
templates/user/settings/keys_gpg.tmpl
··· 43 43 <div class="flex-item"> 44 44 <p> 45 45 {{ctx.Locale.Tr "settings.gpg_desc"}}<br> 46 - {{ctx.Locale.Tr "settings.gpg_helper" "https://docs.codeberg.org/security/gpg-key/" | SanitizeHTML}} 46 + {{ctx.Locale.Tr "settings.gpg_helper" "https://docs.codeberg.org/security/gpg-key/"}} 47 47 </p> 48 48 </div> 49 49 {{range .GPGKeys}}
+1 -1
templates/user/settings/keys_ssh.tmpl
··· 31 31 <div class="flex-item"> 32 32 <p> 33 33 {{ctx.Locale.Tr "settings.ssh_desc"}}<br> 34 - {{ctx.Locale.Tr "settings.ssh_helper" "https://docs.codeberg.org/security/ssh-key/" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/troubleshooting-ssh" | SanitizeHTML}} 34 + {{ctx.Locale.Tr "settings.ssh_helper" "https://docs.codeberg.org/security/ssh-key/" "https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/troubleshooting-ssh"}} 35 35 </p> 36 36 </div> 37 37 {{if .DisableSSH}}
+1 -1
templates/user/settings/security/twofa.tmpl
··· 4 4 <div class="ui attached segment"> 5 5 <p>{{ctx.Locale.Tr "settings.twofa_desc"}}</p> 6 6 {{if .TOTPEnrolled}} 7 - <p>{{ctx.Locale.Tr "settings.twofa_is_enrolled" | SanitizeHTML}}</p> 7 + <p>{{ctx.Locale.Tr "settings.twofa_is_enrolled"}}</p> 8 8 <form class="ui form" action="{{AppSubUrl}}/user/settings/security/two_factor/regenerate_scratch" method="post" enctype="multipart/form-data"> 9 9 {{.CsrfTokenHtml}} 10 10 <p>{{ctx.Locale.Tr "settings.regenerate_scratch_token_desc"}}</p>
+1 -1
templates/user/settings/security/webauthn.tmpl
··· 1 1 <h4 class="ui top attached header">{{ctx.Locale.Tr "settings.webauthn"}}</h4> 2 2 <div class="ui attached segment"> 3 - <p>{{ctx.Locale.Tr "settings.webauthn_desc" | SanitizeHTML}}</p> 3 + <p>{{ctx.Locale.Tr "settings.webauthn_desc"}}</p> 4 4 <p>{{ctx.Locale.Tr "settings.webauthn_key_loss_warning"}} {{ctx.Locale.Tr "settings.webauthn_alternative_tip"}}</p> 5 5 {{template "user/auth/webauthn_error" .}} 6 6 <div class="flex-list">