debian-mirror-gitlab/app/views/admin/applications/index.html.haml

36 lines
1.2 KiB
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- page_title _("Applications")
2015-04-26 12:48:37 +05:30
%h3.page-title
2021-03-11 19:13:27 +05:30
= _('System OAuth applications')
2015-04-26 12:48:37 +05:30
%p.light
2021-03-11 19:13:27 +05:30
= _('System OAuth applications don\'t belong to any user and can only be managed by admins')
2015-04-26 12:48:37 +05:30
%hr
2021-04-17 20:07:23 +05:30
%p= link_to _('New application'), new_admin_application_path, class: 'gl-button btn btn-confirm'
2021-03-11 19:13:27 +05:30
.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
2019-12-04 20:38:33 +05:30
= paginate @applications, theme: 'gitlab'