2018-06-12 09:47:43 +00:00
|
|
|
- add_to_breadcrumbs _("Applications"), oauth_applications_path
|
2018-01-01 13:55:52 +00:00
|
|
|
- breadcrumb_title @application.name
|
2018-06-12 09:47:43 +00:00
|
|
|
- page_title @application.name, _("Applications")
|
2017-06-22 14:47:50 +00:00
|
|
|
- @content_class = "limit-container-width" unless fluid_layout
|
|
|
|
|
2014-12-19 14:15:29 +00:00
|
|
|
%h3.page-title
|
2018-06-12 09:47:43 +00:00
|
|
|
= _("Application: %{name}") % { name: @application.name }
|
2014-12-25 16:35:04 +00:00
|
|
|
|
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
|
|
|
|
%input.label.label-monospace{ id: "application_id", type: "text", autocomplete: 'off', value: @application.uid, readonly: true }
|
|
|
|
.input-group-append
|
|
|
|
= clipboard_button(target: '#application_id', title: _("Copy ID to clipboard"), 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
|
|
|
|
%input.label.label-monospace{ id: "secret", type: "text", autocomplete: 'off', value: @application.secret, readonly: true }
|
|
|
|
.input-group-append
|
2018-10-10 14:31:39 +00:00
|
|
|
= clipboard_button(target: '#secret', title: _("Copy secret to clipboard"), 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
|
2016-11-22 08:57:31 +00:00
|
|
|
|
2016-12-05 04:19:51 +00:00
|
|
|
= render "shared/tokens/scopes_list", token: @application
|
2016-11-22 08:57:31 +00:00
|
|
|
|
2014-12-25 16:35:04 +00:00
|
|
|
.form-actions
|
2018-06-12 09:47:43 +00:00
|
|
|
= link_to _('Edit'), edit_oauth_application_path(@application), class: 'btn btn-primary wide float-left'
|
2014-12-25 16:35:04 +00:00
|
|
|
= render 'delete_form', application: @application, submit_btn_css: 'btn btn-danger prepend-left-10'
|