2018-05-15 13:07:32 +03:00
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 23:58:46 +03:00
|
|
|
{{.locale.Tr "settings.manage_account_links"}}
|
2022-05-29 03:03:17 +03:00
|
|
|
{{if .OrderedOAuth2Names}}
|
|
|
|
<div class="ui right">
|
|
|
|
<div class="ui dropdown">
|
2022-06-27 23:58:46 +03:00
|
|
|
<div class="ui primary tiny button">{{.locale.Tr "settings.link_account"}}</div>
|
2022-05-29 03:03:17 +03:00
|
|
|
<div class="menu">
|
|
|
|
{{range $key := .OrderedOAuth2Names}}
|
|
|
|
{{$provider := index $.OAuth2Providers $key}}
|
|
|
|
<a class="item" href="{{AppSubUrl}}/user/oauth2/{{$key}}">
|
2022-05-29 11:19:56 +03:00
|
|
|
<img width="20" height="20" src="{{AppSubUrl}}{{$provider.Image}}" alt="{{$provider.DisplayName}}">
|
|
|
|
{{$provider.DisplayName}}
|
2022-05-29 03:03:17 +03:00
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-05-15 13:07:32 +03:00
|
|
|
</h4>
|
2022-05-29 11:19:56 +03:00
|
|
|
|
2018-05-15 13:07:32 +03:00
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui key list">
|
|
|
|
<div class="item">
|
2022-06-27 23:58:46 +03:00
|
|
|
{{.locale.Tr "settings.manage_account_links_desc"}}
|
2018-05-15 13:07:32 +03:00
|
|
|
</div>
|
|
|
|
{{if .AccountLinks}}
|
2022-05-29 11:19:56 +03:00
|
|
|
{{range $loginSource, $provider := .AccountLinks}}
|
|
|
|
<div class="item">
|
|
|
|
<div class="right floated content">
|
|
|
|
<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}}">
|
2022-06-27 23:58:46 +03:00
|
|
|
{{$.locale.Tr "settings.delete_key"}}
|
2022-05-29 11:19:56 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
2018-05-15 13:07:32 +03:00
|
|
|
<div class="content">
|
|
|
|
<strong>{{$provider}}</strong>
|
2022-06-27 23:58:46 +03:00
|
|
|
{{if $loginSource.IsActive}}<span class="text red">{{$.locale.Tr "settings.active"}}</span>{{end}}
|
2018-05-15 13:07:32 +03:00
|
|
|
</div>
|
2022-05-29 11:19:56 +03:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-05-15 13:07:32 +03:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui small basic delete modal" id="delete-account-link">
|
|
|
|
<div class="ui icon header">
|
2021-03-22 07:04:19 +03:00
|
|
|
{{svg "octicon-trash"}}
|
2022-06-27 23:58:46 +03:00
|
|
|
{{.locale.Tr "settings.remove_account_link"}}
|
2018-05-15 13:07:32 +03:00
|
|
|
</div>
|
|
|
|
<div class="content">
|
2022-06-27 23:58:46 +03:00
|
|
|
<p>{{.locale.Tr "settings.remove_account_link_desc"}}</p>
|
2018-05-15 13:07:32 +03:00
|
|
|
</div>
|
|
|
|
{{template "base/delete_modal_actions" .}}
|
|
|
|
</div>
|