2017-08-23 01:33:57 +09:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('doorkeeper.applications.index.title')
|
|
|
|
|
2020-01-11 10:14:45 +09:00
|
|
|
- content_for :heading_actions do
|
|
|
|
= link_to t('doorkeeper.applications.index.new'), new_settings_application_path, class: 'button'
|
|
|
|
|
2020-01-20 23:55:03 +09:00
|
|
|
- if @applications.empty?
|
2023-03-15 12:15:36 +09:00
|
|
|
.muted-hint.center-text= t 'doorkeeper.applications.index.empty'
|
2020-01-11 10:14:45 +09:00
|
|
|
- else
|
|
|
|
.table-wrapper
|
|
|
|
%table.table
|
|
|
|
%thead
|
2017-09-09 09:26:58 +09:00
|
|
|
%tr
|
2020-01-11 10:14:45 +09:00
|
|
|
%th= t('doorkeeper.applications.index.application')
|
|
|
|
%th= t('doorkeeper.applications.index.scopes')
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- @applications.each do |application|
|
|
|
|
%tr
|
|
|
|
%td= link_to application.name, settings_application_path(application)
|
|
|
|
%th= application.scopes
|
|
|
|
%td
|
2024-08-20 20:48:15 +09:00
|
|
|
= table_link_to 'close', t('doorkeeper.applications.index.delete'), settings_application_path(application), method: :delete, data: { confirm: t('doorkeeper.applications.confirmations.destroy') }
|
2017-08-23 07:59:35 +09:00
|
|
|
|
2017-08-23 01:33:57 +09:00
|
|
|
= paginate @applications
|