Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/doorkeeper/applications/_show.html.haml')
-rw-r--r--app/views/shared/doorkeeper/applications/_show.html.haml39
1 files changed, 39 insertions, 0 deletions
diff --git a/app/views/shared/doorkeeper/applications/_show.html.haml b/app/views/shared/doorkeeper/applications/_show.html.haml
new file mode 100644
index 00000000000..b690aa74ff0
--- /dev/null
+++ b/app/views/shared/doorkeeper/applications/_show.html.haml
@@ -0,0 +1,39 @@
+.table-holder.oauth-application-show
+ %table.table
+ %tr
+ %td
+ = _('Application ID')
+ %td
+ .clipboard-group
+ .input-group
+ %input.label.label-monospace.monospace{ id: "application_id", type: "text", autocomplete: 'off', value: @application.uid, readonly: true }
+ .input-group-append
+ = clipboard_button(target: '#application_id', title: _("Copy ID"), class: "gl-button btn btn-default")
+ %tr
+ %td
+ = _('Secret')
+ %td
+ .clipboard-group
+ .input-group
+ %input.label.label-monospace.monospace{ id: "secret", type: "text", autocomplete: 'off', value: @application.secret, readonly: true }
+ .input-group-append
+ = clipboard_button(target: '#secret', title: _("Copy secret"), class: "gl-button btn btn-default")
+ %tr
+ %td
+ = _('Callback URL')
+ %td
+ - @application.redirect_uri.split.each do |uri|
+ %div
+ %span.monospace= uri
+
+ %tr
+ %td
+ = _('Confidential')
+ %td
+ = @application.confidential? ? _('Yes') : _('No')
+
+ = render "shared/tokens/scopes_list", token: @application
+
+.form-actions
+ = link_to _('Edit'), edit_path, class: 'gl-button btn btn-confirm wide float-left'
+ = render 'shared/doorkeeper/applications/delete_form', path: delete_path, submit_btn_css: 'gl-button btn btn-danger gl-ml-3'