summaryrefslogtreecommitdiffstats
path: root/templates/webhook
diff options
context:
space:
mode:
authorDenys Konovalov <kontakt@denyskon.de>2024-09-02 20:36:24 +0200
committer0ko <0ko@noreply.codeberg.org>2024-09-12 14:28:58 +0200
commit8857da871ed1539cf2e9b9d647a0c5925a1e8665 (patch)
tree4b4f090e3b9ae89b2c25f1efe16749f4a52d6cec /templates/webhook
parentRemove html tags from create tag and branch translation (#31973) (diff)
downloadforgejo-8857da871ed1539cf2e9b9d647a0c5925a1e8665.tar.xz
forgejo-8857da871ed1539cf2e9b9d647a0c5925a1e8665.zip
Remove urls from translations (#31950)
Part of #27700 Removes all URLs from translation strings to easy up changing them in the future and to exclude people injecting malicious URLs through translations. First measure as long as #24402 is out of scope. (cherry picked from commit 83f37f630246e381eefd650fc2d4b1f3976ea882) Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu> Conflicts: - options/locale/locale_en-US.ini Resolved by manually applying the URL->%s changes to our translations. - routers/web/admin/hooks.go templates/repo/settings/protected_branch.tmpl templates/status/500.tmpl Manually resolved. - templates/repo/settings/webhook/settings.tmpl Applied the change to templates/webhook/shared-settings.tmpl instead Additional changes: Gitea-specific URLs have been replaced by their Forgejo counterparts, lifted from the original translation text.
Diffstat (limited to 'templates/webhook')
-rw-r--r--templates/webhook/shared-settings.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/webhook/shared-settings.tmpl b/templates/webhook/shared-settings.tmpl
index be3a8755d4..b6c05b78ed 100644
--- a/templates/webhook/shared-settings.tmpl
+++ b/templates/webhook/shared-settings.tmpl
@@ -161,7 +161,7 @@
<div class="field">
<label for="branch_filter">{{ctx.Locale.Tr "repo.settings.branch_filter"}}</label>
<input id="branch_filter" name="branch_filter" type="text" value="{{or .Webhook.BranchFilter "*"}}">
- <span class="help">{{ctx.Locale.Tr "repo.settings.branch_filter_desc"}}</span>
+ <span class="help">{{ctx.Locale.Tr "repo.settings.branch_filter_desc" "https://pkg.go.dev/github.com/gobwas/glob#Compile" "github.com/gobwas/glob"}}</span>
</div>
{{$skipAuthorizationHeader := or (eq .HookType "sourcehut_builds") (eq .HookType "matrix")}}