debian-mirror-gitlab/app/views/admin/applications/index.html.haml
2022-05-07 20:08:51 +05:30

37 lines
1.2 KiB
Text

- 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