diff options
author | Denys Konovalov <kontakt@denyskon.de> | 2024-09-02 20:36:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 18:36:24 +0000 |
commit | 83f37f630246e381eefd650fc2d4b1f3976ea882 (patch) | |
tree | 28a5de8f9c7d44c631caba05649b09aba41b909c /templates/admin | |
parent | ac344497473f92c9a04f7863374dbb14e3c09d4e (diff) | |
download | gitea-83f37f630246e381eefd650fc2d4b1f3976ea882.tar.gz gitea-83f37f630246e381eefd650fc2d4b1f3976ea882.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.
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/auth/new.tmpl | 20 | ||||
-rw-r--r-- | templates/admin/dashboard.tmpl | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl index e3985cb227..be4995c784 100644 --- a/templates/admin/auth/new.tmpl +++ b/templates/admin/auth/new.tmpl @@ -91,29 +91,29 @@ <h5 class="ui top attached header">{{ctx.Locale.Tr "admin.auths.tip.oauth2_provider"}}</h5> <div class="ui attached segment"> <li>Bitbucket</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.bitbucket"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.bitbucket" "https://bitbucket.org/account/user/{your-username}/oauth-consumers/new"}}</span> <li>Dropbox</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.dropbox"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.dropbox" "https://www.dropbox.com/developers/apps"}}</span> <li>Facebook</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.facebook"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.facebook" "https://developers.facebook.com/apps"}}</span> <li>GitHub</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.github"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.github" "https://github.com/settings/applications/new"}}</span> <li>GitLab</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.gitlab_new"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.gitlab_new" "https://gitlab.com/-/profile/applications"}}</span> <li>Google</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.google_plus"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.google_plus" "https://console.developers.google.com/"}}</span> <li>OpenID Connect</li> <span>{{ctx.Locale.Tr "admin.auths.tip.openid_connect"}}</span> <li>Twitter</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.twitter"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.twitter" "https://dev.twitter.com/apps"}}</span> <li>Discord</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.discord"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.discord" "https://discordapp.com/developers/applications/me"}}</span> <li>Gitea</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.gitea"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.gitea" "https://docs.gitea.com/development/oauth2-provider"}}</span> <li>Nextcloud</li> <span>{{ctx.Locale.Tr "admin.auths.tip.nextcloud"}}</span> <li>Yandex</li> - <span>{{ctx.Locale.Tr "admin.auths.tip.yandex"}}</span> + <span>{{ctx.Locale.Tr "admin.auths.tip.yandex" "https://oauth.yandex.com/client/new"}}</span> <li>Mastodon</li> <span>{{ctx.Locale.Tr "admin.auths.tip.mastodon"}}</span> </div> diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 2f9875f0d9..b82922df0c 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -2,7 +2,7 @@ <div class="admin-setting-content"> {{if .NeedUpdate}} <div class="ui negative message flash-error"> - <p>{{ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer}}</p> + <p>{{ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer "https://blog.gitea.com"}}</p> </div> {{end}} <h4 class="ui top attached header"> |