2017-08-23 01:33:57 +09:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('doorkeeper.applications.show.title', name: @application.name)
|
|
|
|
|
2017-08-23 07:59:35 +09:00
|
|
|
%p.hint= t('applications.warning')
|
|
|
|
|
2017-09-09 09:26:58 +09:00
|
|
|
.table-wrapper
|
|
|
|
%table.table
|
|
|
|
%tbody
|
2023-03-15 12:15:36 +09:00
|
|
|
%tr
|
2017-09-09 09:26:58 +09:00
|
|
|
%th= t('doorkeeper.applications.show.application_id')
|
|
|
|
%td
|
|
|
|
%code= @application.uid
|
|
|
|
%tr
|
|
|
|
%th= t('doorkeeper.applications.show.secret')
|
|
|
|
%td
|
|
|
|
%code= @application.secret
|
|
|
|
%tr
|
2024-10-01 22:38:29 +09:00
|
|
|
%th= t('applications.your_token')
|
2017-09-09 09:26:58 +09:00
|
|
|
%td
|
|
|
|
%code= current_user.token_for_app(@application).token
|
|
|
|
%tr
|
2024-10-01 22:38:29 +09:00
|
|
|
%th
|
2017-09-09 09:26:58 +09:00
|
|
|
%td= table_link_to 'refresh', t('applications.regenerate_token'), regenerate_settings_application_path(@application), method: :post
|
2017-08-23 07:59:35 +09:00
|
|
|
|
|
|
|
%hr/
|
2017-08-23 01:33:57 +09:00
|
|
|
|
2024-10-01 19:34:05 +09:00
|
|
|
= simple_form_for @application, url: settings_application_path(@application) do |form|
|
2024-09-23 22:37:32 +09:00
|
|
|
= render form
|
2017-11-17 10:52:30 +09:00
|
|
|
|
2017-08-23 01:33:57 +09:00
|
|
|
.actions
|
2024-09-23 22:37:32 +09:00
|
|
|
= form.button :button, t('generic.save_changes'), type: :submit
|