index.html.haml 943 B

12345678910111213141516171819202122232425
  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. .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