闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
866 B

  1. - content_for :page_title do
  2. = t('doorkeeper.applications.show.title', name: @application.name)
  3. %p.hint= t('applications.warning')
  4. %table.table
  5. %tbody
  6. %tr
  7. %th= t('doorkeeper.applications.show.application_id')
  8. %td
  9. %code= @application.uid
  10. %tr
  11. %th= t('doorkeeper.applications.show.secret')
  12. %td
  13. %code= @application.secret
  14. %tr
  15. %th{ rowspan: 2}= t('applications.your_token')
  16. %td
  17. %code= current_user.token_for_app(@application).token
  18. %tr
  19. %td= table_link_to 'refresh', t('applications.regenerate_token'), regenerate_settings_application_path(@application), method: :post
  20. %hr/
  21. = simple_form_for @application, url: settings_application_path(@application), method: :put do |f|
  22. = render 'fields', f: f
  23. .actions
  24. = f.button :button, t('generic.save_changes'), type: :submit