summaryrefslogtreecommitdiff
path: root/app/views/admin/applications/index.html.haml
blob: 86a4ab00ba31429b7381364810fa9ec81023c476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
- page_title _("Applications")
%h3.page-title
  = _('System OAuth applications')
%p.light
  = _('System OAuth applications don\'t belong to any user and can only be managed by admins')
%hr
%p= link_to _('New application'), new_admin_application_path, class: 'gl-button btn btn-confirm'
.table-responsive
  %table.table
    %thead
      %tr
        %th
          = _('Name')
        %th
          = _('Callback URL')
        %th
          = _('Clients')
        %th
          = _('Trusted')
        %th
          = _('Confidential')
        %th
        %th
    %tbody.oauth-applications
      - @applications.each do |application|
        %tr{ :id => "application_#{application.id}" }
          %td= link_to application.name, admin_application_path(application)
          %td= application.redirect_uri
          %td= @application_counts[application.id].to_i
          %td= application.trusted? ? _('Yes'): _('No')
          %td= application.confidential? ? _('Yes'): _('No')
          %td= link_to 'Edit', edit_admin_application_path(application), class: 'gl-button btn btn-link'
          %td= render 'delete_form', application: application

= paginate @applications, theme: 'gitlab'

.js-application-delete-modal