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.

39 lines
1.2 KiB

  1. <div class="page-header">
  2. <h1><%= t('.title', name: @application.name) %></h1>
  3. </div>
  4. <div class="row">
  5. <div class="col-md-8">
  6. <h4><%= t('.application_id') %>:</h4>
  7. <p><code id="application_id"><%= @application.uid %></code></p>
  8. <h4><%= t('.secret') %>:</h4>
  9. <p><code id="secret"><%= @application.secret %></code></p>
  10. <h4><%= t('.scopes') %>:</h4>
  11. <p><code id="scopes"><%= @application.scopes %></code></p>
  12. <h4><%= t('.callback_urls') %>:</h4>
  13. <table>
  14. <% @application.redirect_uri.split.each do |uri| %>
  15. <tr>
  16. <td>
  17. <code><%= uri %></code>
  18. </td>
  19. <td>
  20. <%= link_to t('doorkeeper.applications.buttons.authorize'), oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code'), class: 'btn btn-success', target: '_blank' %>
  21. </td>
  22. </tr>
  23. <% end %>
  24. </table>
  25. </div>
  26. <div class="col-md-4">
  27. <h3><%= t('.actions') %></h3>
  28. <p><%= link_to t('doorkeeper.applications.buttons.edit'), edit_oauth_application_path(@application), class: 'btn btn-primary' %></p>
  29. <p><%= render 'delete_form', application: @application, submit_btn_css: 'btn btn-danger' %></p>
  30. </div>
  31. </div>