You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

  1. <h4 class="ui top attached header">
  2. {{.i18n.Tr "settings.manage_account_links"}}
  3. </h4>
  4. <div class="ui attached segment">
  5. <div class="ui key list">
  6. <div class="item">
  7. {{.i18n.Tr "settings.manage_account_links_desc"}}
  8. </div>
  9. {{if .AccountLinks}}
  10. {{range $loginSource, $provider := .AccountLinks}}
  11. <div class="item">
  12. <div class="right floated content">
  13. <button class="ui red tiny button delete-button" id="delete-account-link" data-url="{{AppSubUrl}}/user/settings/security/account_link" data-id="{{$loginSource.ID}}">
  14. {{$.i18n.Tr "settings.delete_key"}}
  15. </button>
  16. </div>
  17. <div class="content">
  18. <strong>{{$provider}}</strong>
  19. {{if $loginSource.IsActived}}<span class="text red">{{$.i18n.Tr "settings.active"}}</span>{{end}}
  20. </div>
  21. </div>
  22. {{end}}
  23. {{end}}
  24. </div>
  25. </div>
  26. <div class="ui small basic delete modal" id="delete-account-link">
  27. <div class="ui icon header">
  28. <i class="trash icon"></i>
  29. {{.i18n.Tr "settings.remove_account_link"}}
  30. </div>
  31. <div class="content">
  32. <p>{{.i18n.Tr "settings.remove_account_link_desc"}}</p>
  33. </div>
  34. {{template "base/delete_modal_actions" .}}
  35. </div>