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.

39 lines
1.2 KiB

  1. <h4 class="ui top attached header">
  2. {{.i18n.Tr "settings.authorized_oauth2_applications"}}
  3. </h4>
  4. <div class="ui attached segment">
  5. <div class="ui key list">
  6. <div class="item">
  7. {{.i18n.Tr "settings.authorized_oauth2_applications_description"}}
  8. </div>
  9. {{range $grant := .Grants}}
  10. <div class="item">
  11. <div class="right floated content">
  12. <button class="ui red tiny button delete-button" id="revoke-gitea-oauth2-grant"
  13. data-url="{{AppSubUrl}}/user/settings/applications/oauth2/revoke"
  14. data-id="{{$grant.ID}}">
  15. {{$.i18n.Tr "settings.revoke_key"}}
  16. </button>
  17. </div>
  18. <i class="big key icon"></i>
  19. <div class="content">
  20. <strong>{{$grant.Application.Name}}</strong>
  21. <div class="activity meta">
  22. <i>{{$.i18n.Tr "settings.add_on"}} <span>{{$grant.CreatedUnix.FormatShort}}</span></i>
  23. </div>
  24. </div>
  25. </div>
  26. {{end}}
  27. </div>
  28. </div>
  29. <div class="ui small basic delete modal" id="revoke-gitea-oauth2-grant">
  30. <div class="ui icon header">
  31. <i class="shield alternate icon"></i>
  32. {{.i18n.Tr "settings.revoke_oauth2_grant"}}
  33. </div>
  34. <div class="content">
  35. <p>{{.i18n.Tr "settings.revoke_oauth2_grant_description"}}</p>
  36. </div>
  37. {{template "base/delete_modal_actions" .}}
  38. </div>