2017-08-22 09:33:57 -07:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('doorkeeper.applications.show.title', name: @application.name)
|
|
|
|
|
2017-08-22 15:59:35 -07:00
|
|
|
%p.hint= t('applications.warning')
|
|
|
|
|
2017-09-08 17:26:58 -07:00
|
|
|
.table-wrapper
|
|
|
|
%table.table
|
|
|
|
%tbody
|
|
|
|
%tr
|
|
|
|
%th= t('doorkeeper.applications.show.application_id')
|
|
|
|
%td
|
|
|
|
%code= @application.uid
|
|
|
|
%tr
|
|
|
|
%th= t('doorkeeper.applications.show.secret')
|
|
|
|
%td
|
|
|
|
%code= @application.secret
|
|
|
|
%tr
|
|
|
|
%th{ rowspan: 2}= t('applications.your_token')
|
|
|
|
%td
|
|
|
|
%code= current_user.token_for_app(@application).token
|
|
|
|
%tr
|
|
|
|
%td= table_link_to 'refresh', t('applications.regenerate_token'), regenerate_settings_application_path(@application), method: :post
|
2017-08-22 15:59:35 -07:00
|
|
|
|
|
|
|
%hr/
|
2017-08-22 09:33:57 -07:00
|
|
|
|
|
|
|
= simple_form_for @application, url: settings_application_path(@application), method: :put do |f|
|
2017-08-22 15:59:35 -07:00
|
|
|
= render 'fields', f: f
|
2017-11-16 17:52:30 -08:00
|
|
|
|
2017-08-22 09:33:57 -07:00
|
|
|
.actions
|
|
|
|
= f.button :button, t('generic.save_changes'), type: :submit
|
|
|
|
|