2021-10-27 15:23:28 +05:30
|
|
|
- show_trusted_row = local_assigns.fetch(:show_trusted_row, false)
|
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
.table-holder.oauth-application-show
|
|
|
|
%table.table
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= _('Application ID')
|
|
|
|
%td
|
|
|
|
.clipboard-group
|
|
|
|
.input-group
|
2023-06-20 00:43:36 +05:30
|
|
|
%input.label.label-monospace.monospace{ id: "application_id", type: "text", autocomplete: 'off', value: @application.uid, readonly: true, data: { qa_selector: 'application_id_field' } }
|
2021-04-29 21:17:54 +05:30
|
|
|
.input-group-append
|
|
|
|
= clipboard_button(target: '#application_id', title: _("Copy ID"), class: "gl-button btn btn-default")
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= _('Secret')
|
|
|
|
%td
|
2023-06-20 00:43:36 +05:30
|
|
|
#js-oauth-application-secret{ data: { initial_secret: @application.plaintext_secret, renew_path: renew_path } }
|
2023-05-27 22:25:52 +05:30
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= _('Callback URL')
|
|
|
|
%td
|
|
|
|
- @application.redirect_uri.split.each do |uri|
|
|
|
|
%div
|
|
|
|
%span.monospace= uri
|
|
|
|
|
2021-10-27 15:23:28 +05:30
|
|
|
- if show_trusted_row
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= _('Trusted')
|
|
|
|
%td
|
|
|
|
= @application.trusted? ? _('Yes') : _('No')
|
|
|
|
|
2021-04-29 21:17:54 +05:30
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
= _('Confidential')
|
|
|
|
%td
|
|
|
|
= @application.confidential? ? _('Yes') : _('No')
|
|
|
|
|
|
|
|
= render "shared/tokens/scopes_list", token: @application
|
|
|
|
|
2021-12-11 22:18:48 +05:30
|
|
|
.form-actions.gl-display-flex.gl-justify-content-space-between
|
|
|
|
%div
|
|
|
|
- if @created
|
|
|
|
= link_to _('Continue'), index_path, class: 'btn btn-confirm btn-md gl-button gl-mr-3'
|
|
|
|
= link_to _('Edit'), edit_path, class: 'btn btn-default btn-md gl-button'
|
2023-04-23 21:23:45 +05:30
|
|
|
= render 'shared/doorkeeper/applications/delete_form', path: delete_path
|
2023-06-20 00:43:36 +05:30
|
|
|
|
|
|
|
-# Create a hidden field to save the ID of application created
|
|
|
|
= hidden_field_tag(:id_of_application, @application.id, data: { qa_selector: 'id_of_application_field' })
|