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

50 lines
1.6 KiB
Text
Raw Normal View History

2020-07-28 23:09:34 +05:30
- page_title @application.name, _("Applications")
2018-12-05 23:21:45 +05:30
2015-04-26 12:48:37 +05:30
%h3.page-title
Application: #{@application.name}
2017-08-17 22:00:37 +05:30
.table-holder.oauth-application-show
2015-11-26 14:37:03 +05:30
%table.table
%tr
%td
2018-12-05 23:21:45 +05:30
= _('Application ID')
2015-11-26 14:37:03 +05:30
%td
2018-12-05 23:21:45 +05:30
.clipboard-group
.input-group
2019-07-31 22:56:46 +05:30
%input.label.label-monospace.monospace{ id: "application_id", type: "text", autocomplete: 'off', value: @application.uid, readonly: true }
2018-12-05 23:21:45 +05:30
.input-group-append
2021-01-03 14:25:43 +05:30
= clipboard_button(target: '#application_id', title: _("Copy ID"), class: "gl-button btn btn-default")
2015-11-26 14:37:03 +05:30
%tr
%td
2018-12-05 23:21:45 +05:30
= _('Secret')
2015-11-26 14:37:03 +05:30
%td
2018-12-05 23:21:45 +05:30
.clipboard-group
.input-group
2019-07-31 22:56:46 +05:30
%input.label.label-monospace.monospace{ id: "secret", type: "text", autocomplete: 'off', value: @application.secret, readonly: true }
2018-12-05 23:21:45 +05:30
.input-group-append
2021-01-03 14:25:43 +05:30
= clipboard_button(target: '#secret', title: _("Copy secret"), class: "gl-button btn btn-default")
2015-11-26 14:37:03 +05:30
%tr
%td
2018-12-05 23:21:45 +05:30
= _('Callback URL')
2015-11-26 14:37:03 +05:30
%td
- @application.redirect_uri.split.each do |uri|
%div
%span.monospace= uri
2017-09-10 17:25:29 +05:30
%tr
%td
Trusted
%td
= @application.trusted? ? 'Y' : 'N'
2020-03-13 15:44:24 +05:30
%tr
%td
Confidential
%td
= @application.confidential? ? 'Y' : 'N'
2017-08-17 22:00:37 +05:30
= render "shared/tokens/scopes_list", token: @application
2015-04-26 12:48:37 +05:30
.form-actions
2021-03-11 19:13:27 +05:30
= link_to 'Edit', edit_admin_application_path(@application), class: 'gl-button btn btn-confirm wide float-left'
= render 'delete_form', application: @application, submit_btn_css: 'gl-button btn btn-danger gl-ml-3'