index.html.haml 1.1 KB

123456789101112131415161718192021222324
  1. - content_for :page_title do
  2. = t('doorkeeper.authorized_applications.index.title')
  3. .table-wrapper
  4. %table.table
  5. %thead
  6. %tr
  7. %th= t('doorkeeper.authorized_applications.index.application')
  8. %th= t('doorkeeper.authorized_applications.index.scopes')
  9. %th= t('doorkeeper.authorized_applications.index.created_at')
  10. %th
  11. %tbody
  12. - @applications.each do |application|
  13. %tr
  14. %td
  15. - if application.website.blank?
  16. = application.name
  17. - else
  18. = link_to application.name, application.website, target: '_blank', rel: 'noopener noreferrer'
  19. %th!= application.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.join(', ')
  20. %td= l application.created_at
  21. %td
  22. - unless application.superapp? || current_account.suspended?
  23. = table_link_to 'times', t('doorkeeper.authorized_applications.buttons.revoke'), oauth_authorized_application_path(application), method: :delete, data: { confirm: t('doorkeeper.authorized_applications.confirmations.revoke') }