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.

grants_oauth2.tmpl 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <h4 class="ui top attached header">
  2. {{ctx.Locale.Tr "settings.authorized_oauth2_applications"}}
  3. </h4>
  4. <div class="ui attached segment">
  5. <div class="flex-list">
  6. <div class="flex-item">
  7. {{ctx.Locale.Tr "settings.authorized_oauth2_applications_description"}}
  8. </div>
  9. {{range .Grants}}
  10. <div class="flex-item">
  11. <div class="flex-item-leading">
  12. {{svg "octicon-key" 32}}
  13. </div>
  14. <div class="flex-item-main">
  15. <div class="flex-item-title">{{.Application.Name}}</div>
  16. <div class="flex-item-body">
  17. <i>{{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix) | Safe}}</i>
  18. </div>
  19. </div>
  20. <div class="flex-item-trailing">
  21. <button class="ui red tiny button delete-button" data-modal-id="revoke-gitea-oauth2-grant"
  22. data-url="{{AppSubUrl}}/user/settings/applications/oauth2/{{.ApplicationID}}/revoke/{{.ID}}">
  23. {{ctx.Locale.Tr "settings.revoke_key"}}
  24. </button>
  25. </div>
  26. </div>
  27. {{end}}
  28. </div>
  29. <div class="ui g-modal-confirm delete modal" id="revoke-gitea-oauth2-grant">
  30. <div class="header">
  31. {{svg "octicon-shield" 16 "gt-mr-2"}}
  32. {{ctx.Locale.Tr "settings.revoke_oauth2_grant"}}
  33. </div>
  34. <div class="content">
  35. <p>{{ctx.Locale.Tr "settings.revoke_oauth2_grant_description"}}</p>
  36. </div>
  37. {{template "base/modal_actions_confirm" .}}
  38. </div>
  39. </div>