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.

25 lines
946 B

  1. - content_for :page_title do
  2. = t('doorkeeper.applications.index.title')
  3. - content_for :heading_actions do
  4. = link_to t('doorkeeper.applications.index.new'), new_settings_application_path, class: 'button'
  5. - if @applications.empty?
  6. %div.muted-hint.center-text=t 'doorkeeper.applications.index.empty'
  7. - else
  8. .table-wrapper
  9. %table.table
  10. %thead
  11. %tr
  12. %th= t('doorkeeper.applications.index.application')
  13. %th= t('doorkeeper.applications.index.scopes')
  14. %th
  15. %tbody
  16. - @applications.each do |application|
  17. %tr
  18. %td= link_to application.name, settings_application_path(application)
  19. %th= application.scopes
  20. %td
  21. = table_link_to 'times', t('doorkeeper.applications.index.delete'), settings_application_path(application), method: :delete, data: { confirm: t('doorkeeper.applications.confirmations.destroy') }
  22. = paginate @applications