2018-05-15 12:07:32 +02:00
|
|
|
<h4 class="ui top attached header">
|
|
|
|
{{.i18n.Tr "settings.manage_account_links"}}
|
2022-05-29 02:03:17 +02:00
|
|
|
{{if .OrderedOAuth2Names}}
|
|
|
|
<div class="ui right">
|
|
|
|
<div class="ui dropdown">
|
|
|
|
<div class="ui primary tiny button">Link Account</div>
|
|
|
|
<div class="menu">
|
|
|
|
{{range $key := .OrderedOAuth2Names}}
|
|
|
|
{{$provider := index $.OAuth2Providers $key}}
|
|
|
|
<a class="item" href="{{AppSubUrl}}/user/oauth2/{{$key}}">
|
|
|
|
<img
|
|
|
|
alt="{{$provider.DisplayName}}"
|
|
|
|
src="{{AppSubUrl}}{{$provider.Image}}"
|
|
|
|
width="20" height="20">{{$provider.DisplayName}}
|
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-05-15 12:07:32 +02:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui key list">
|
|
|
|
<div class="item">
|
|
|
|
{{.i18n.Tr "settings.manage_account_links_desc"}}
|
|
|
|
</div>
|
|
|
|
{{if .AccountLinks}}
|
|
|
|
{{range $loginSource, $provider := .AccountLinks}}
|
|
|
|
<div class="item">
|
|
|
|
<div class="right floated content">
|
2021-08-27 04:57:40 +02:00
|
|
|
<button class="ui red tiny button delete-button" data-modal-id="delete-account-link" data-url="{{AppSubUrl}}/user/settings/security/account_link" data-id="{{$loginSource.ID}}">
|
2018-05-15 12:07:32 +02:00
|
|
|
{{$.i18n.Tr "settings.delete_key"}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<strong>{{$provider}}</strong>
|
2021-07-24 12:16:34 +02:00
|
|
|
{{if $loginSource.IsActive}}<span class="text red">{{$.i18n.Tr "settings.active"}}</span>{{end}}
|
2018-05-15 12:07:32 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui small basic delete modal" id="delete-account-link">
|
|
|
|
<div class="ui icon header">
|
2021-03-22 05:04:19 +01:00
|
|
|
{{svg "octicon-trash"}}
|
2018-05-15 12:07:32 +02:00
|
|
|
{{.i18n.Tr "settings.remove_account_link"}}
|
|
|
|
</div>
|
|
|
|
<div class="content">
|
|
|
|
<p>{{.i18n.Tr "settings.remove_account_link_desc"}}</p>
|
|
|
|
</div>
|
|
|
|
{{template "base/delete_modal_actions" .}}
|
|
|
|
</div>
|