From e0273bad72fb0d09cc4055240cbd6f1df757e0a9 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 29 May 2022 16:19:56 +0800 Subject: [PATCH] Fix i18n for Link Account button, re-format tmpl (#19835) --- options/locale/locale_en-US.ini | 1 + .../user/settings/security/accountlinks.tmpl | 27 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 5061c735a..66dad56fd 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -778,6 +778,7 @@ webauthn_delete_key_desc = If you remove a security key you can no longer sign i manage_account_links = Manage Linked Accounts manage_account_links_desc = These external accounts are linked to your Gitea account. account_links_not_available = There are currently no external accounts linked to your Gitea account. +link_account = Link Account remove_account_link = Remove Linked Account remove_account_link_desc = Removing a linked account will revoke its access to your Gitea account. Continue? remove_account_link_success = The linked account has been removed. diff --git a/templates/user/settings/security/accountlinks.tmpl b/templates/user/settings/security/accountlinks.tmpl index cdbd8ad1d..da9afb795 100644 --- a/templates/user/settings/security/accountlinks.tmpl +++ b/templates/user/settings/security/accountlinks.tmpl @@ -3,15 +3,13 @@ {{if .OrderedOAuth2Names}}
{{end}} +
{{.i18n.Tr "settings.manage_account_links_desc"}}
{{if .AccountLinks}} - {{range $loginSource, $provider := .AccountLinks}} -
-
- -
+ {{range $loginSource, $provider := .AccountLinks}} +
+
+ +
{{$provider}} {{if $loginSource.IsActive}}{{$.i18n.Tr "settings.active"}}{{end}}
-
- {{end}} +
+ {{end}} {{end}}