diff --git a/templates/user/settings/security/accountlinks.tmpl b/templates/user/settings/security/accountlinks.tmpl index bcf432f690..cf3667d8a2 100644 --- a/templates/user/settings/security/accountlinks.tmpl +++ b/templates/user/settings/security/accountlinks.tmpl @@ -1,3 +1,5 @@ +{{/* No account links, no way to add account links: Menu will not be shown. */}} +{{if or .AccountLinks .OrderedOAuth2Names}}

{{.locale.Tr "settings.manage_account_links"}} {{if .OrderedOAuth2Names}} @@ -23,20 +25,18 @@
{{.locale.Tr "settings.manage_account_links_desc"}}
- {{if .AccountLinks}} - {{range $loginSource, $provider := .AccountLinks}} -
-
- - {{$loginSource.Name}} - {{if $loginSource.IsActive}}{{$.locale.Tr "repo.settings.active"}}{{end}} - -
- + {{range $loginSource, $provider := .AccountLinks}} +
+
+ + {{$loginSource.Name}} + {{if $loginSource.IsActive}}{{$.locale.Tr "repo.settings.active"}}{{end}} +
- {{end}} + +
{{end}}
@@ -51,3 +51,4 @@ {{template "base/modal_actions_confirm" .}} +{{end}}