BigW Consortium Gitlab

index.html.haml 836 Bytes
Newer Older
1
- page_title "Applications"
2 3 4
%h3.page-title
  System OAuth applications
%p.light
5
  System OAuth applications don't belong to any user and can only be managed by admins
6
%hr
7 8 9 10 11 12
%p= link_to 'New Application', new_admin_application_path, class: 'btn btn-success'
%table.table.table-striped
  %thead
    %tr
      %th Name
      %th Callback URL
13
      %th Clients
14 15
      %th
      %th
16
  %tbody.oauth-applications
17 18 19 20
    - @applications.each do |application|
      %tr{:id => "application_#{application.id}"}
        %td= link_to application.name, admin_application_path(application)
        %td= application.redirect_uri
21
        %td= application.access_tokens.map(&:resource_owner_id).uniq.count
22
        %td= link_to 'Edit', edit_admin_application_path(application), class: 'btn btn-link'
23
        %td= render 'delete_form', application: application