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