本站源代码
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

37 lines
1.1KB

  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>
上海开阖软件有限公司 沪ICP备12045867号-1