about summary refs log tree commit diff
path: root/app/views/settings/applications/show.html.haml
blob: 4d8555111169ed67af925a9f1aad7d185af93cf3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- content_for :page_title do
  = t('doorkeeper.applications.show.title', name: @application.name)

%p.hint= t('applications.warning')

%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

%hr/

= simple_form_for @application, url: settings_application_path(@application), method: :put do |f|
  = render 'fields', f: f
    
  .actions
    = f.button :button, t('generic.save_changes'), type: :submit