gitlab-org--gitlab-foss/app/views/admin/applications/index.html.haml

24 lines
838 B
Text
Raw Normal View History

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
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
2017-04-04 18:36:19 -04:00
%p= link_to 'New application', new_admin_application_path, class: 'btn btn-success'
2015-01-17 18:37:27 -05:00
%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}" }
2015-01-17 18:37:27 -05:00
%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