app/views/doorkeeper/applications/show.html.haml
.border-bottom.mb-4
%h1= t('.title', name: @application.name)
.row
.col-md-8
%h4
= t('.application_id')
\:
%p
%code#application_id.bg-light= @application.uid
%h4
= t('.secret')
\:
%p
%code#secret.bg-light= @application.secret
%h4
= t('.scopes')
\:
%p
%code#scopes.bg-light= @application.scopes.presence || raw(' ')
%h4
= t('.confidential')
\:
%p
%code#confidential.bg-light= @application.confidential?
%h4
= t('.callback_urls')
\:
%table
- @application.redirect_uri.split.each do |uri|
%tr
%td
%code.bg-light= uri
%td
= link_to t('doorkeeper.applications.buttons.authorize'), oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code', scope: @application.scopes), class: 'btn btn-success', target: '_blank'
.col-md-4
%h3= t('.actions')
%p= link_to t('doorkeeper.applications.buttons.edit'), edit_oauth_application_path(@application), class: 'btn btn-primary'
%p= render 'delete_form', application: @application, submit_btn_css: 'btn btn-danger'