2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Applications"
|
2015-01-17 19:17:34 -05:00
|
|
|
%h3.page-title
|
|
|
|
System OAuth applications
|
|
|
|
%p.light
|
2015-09-30 13:26:55 -04:00
|
|
|
System OAuth applications don't belong to any user and can only be managed by admins
|
2015-01-17 19:17:34 -05:00
|
|
|
%hr
|
2015-01-17 18:37:27 -05:00
|
|
|
%p= link_to 'New Application', new_admin_application_path, class: 'btn btn-success'
|
|
|
|
%table.table.table-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Callback URL
|
2015-01-17 19:17:34 -05:00
|
|
|
%th Clients
|
2015-01-17 18:37:27 -05:00
|
|
|
%th
|
|
|
|
%th
|
2015-01-19 14:18:00 -05:00
|
|
|
%tbody.oauth-applications
|
2015-01-17 18:37:27 -05:00
|
|
|
- @applications.each do |application|
|
|
|
|
%tr{:id => "application_#{application.id}"}
|
|
|
|
%td= link_to application.name, admin_application_path(application)
|
|
|
|
%td= application.redirect_uri
|
2015-02-15 22:50:53 -05:00
|
|
|
%td= application.access_tokens.map(&:resource_owner_id).uniq.count
|
2015-01-17 18:37:27 -05:00
|
|
|
%td= link_to 'Edit', edit_admin_application_path(application), class: 'btn btn-link'
|
2015-09-30 13:28:06 -04:00
|
|
|
%td= render 'delete_form', application: application
|