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

54 lines
2.1 KiB
Text
Raw Normal View History

2022-06-21 17:19:12 +05:30
- page_title s_('AdminArea|Instance OAuth applications')
2022-07-23 23:45:48 +05:30
%h1.page-title.gl-font-size-h-display
2022-06-21 17:19:12 +05:30
= s_('AdminArea|Instance OAuth applications')
2015-04-26 12:48:37 +05:30
%p.light
2022-06-21 17:19:12 +05:30
- docs_link_path = help_page_path('integration/oauth_provider')
- docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer nofollow">'.html_safe % { url: docs_link_path }
= s_('AdminArea|Manage applications for your instance that can use GitLab as an %{docs_link_start}OAuth provider%{docs_link_end}.').html_safe % { docs_link_start: docs_link_start, docs_link_end: '</a>'.html_safe }
- if @applications.empty?
%section.empty-state.gl-text-center.gl-display-flex.gl-flex-direction-column
.svg-content.svg-150
= image_tag 'illustrations/empty-state/empty-admin-apps.svg', class: 'gl-max-w-full'
.gl-max-w-full.gl-m-auto
%h1.h4.gl-font-size-h-display= s_('AdminArea|No applications found')
2023-03-04 22:38:38 +05:30
= render Pajamas::ButtonComponent.new(href: new_admin_application_path, variant: :confirm) do
= s_('New application')
2022-06-21 17:19:12 +05:30
- else
%hr
2023-03-04 22:38:38 +05:30
= render Pajamas::ButtonComponent.new(href: new_admin_application_path, variant: :confirm) do
= s_('New application')
2022-06-21 17:19:12 +05:30
.table-responsive
%table.b-table.gl-table.gl-w-full{ role: 'table' }
%thead
%tr
%th
= _('Name')
%th
= _('Callback URL')
%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.trusted? ? _('Yes'): _('No')
%td= application.confidential? ? _('Yes'): _('No')
2023-04-23 21:23:45 +05:30
%td
= render Pajamas::ButtonComponent.new(href: edit_admin_application_path(application), variant: :link) do
= _('Edit')
2022-06-21 17:19:12 +05:30
%td= render 'delete_form', application: application
2021-03-11 19:13:27 +05:30
2019-12-04 20:38:33 +05:30
= paginate @applications, theme: 'gitlab'
2022-05-07 20:08:51 +05:30
.js-application-delete-modal