From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/user/settings/security/accountlinks.tmpl | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 templates/user/settings/security/accountlinks.tmpl (limited to 'templates/user/settings/security/accountlinks.tmpl') diff --git a/templates/user/settings/security/accountlinks.tmpl b/templates/user/settings/security/accountlinks.tmpl new file mode 100644 index 0000000..0820844 --- /dev/null +++ b/templates/user/settings/security/accountlinks.tmpl @@ -0,0 +1,62 @@ +{{/* No account links, no way to add account links: Menu will not be shown. */}} +{{if or .AccountLinks .OrderedOAuth2Names}} +

+ {{ctx.Locale.Tr "settings.manage_account_links"}} + {{if .OrderedOAuth2Names}} +
+ +
+ {{end}} +

+ +
+
+
+ {{ctx.Locale.Tr "settings.manage_account_links_desc"}} +
+ {{range $loginSource, $provider := .AccountLinks}} +
+ {{$providerData := index $.OAuth2Providers $loginSource.Name}} +
+ {{$providerData.IconHTML 20}} +
+
+ + {{$loginSource.Name}} + + {{if $loginSource.IsActive}} + {{ctx.Locale.Tr "repo.settings.active"}} + {{end}} +
+
+ +
+
+ {{end}} +
+ + +
+{{end}} -- cgit v1.2.3