Sha256: 3a46b460572c0e23d5def4fb464181f95e6237640e1cdb7e90f1c60ed7206e8c

Contents?: true

Size: 1.52 KB

Versions: 14

Compression:

Stored size: 1.52 KB

Contents

<div class="border-bottom mb-4">
  <h1><%= t('.title', name: @application.name) %></h1>
</div>

<div class="row">
  <div class="col-md-8">
    <h4><%= t('.application_id') %>:</h4>
    <p><code class="bg-light" id="application_id"><%= @application.uid %></code></p>

    <h4><%= t('.secret') %>:</h4>
    <p><code class="bg-light" id="secret"><%= flash[:application_secret].presence || @application.plaintext_secret %></code></p>

    <h4><%= t('.scopes') %>:</h4>
    <p><code class="bg-light" id="scopes"><%= @application.scopes.presence || raw('&nbsp;') %></code></p>

    <h4><%= t('.confidential') %>:</h4>
    <p><code class="bg-light" id="confidential"><%= @application.confidential? %></code></p>

    <h4><%= t('.callback_urls') %>:</h4>

    <table>
      <% @application.redirect_uri.split.each do |uri| %>
        <tr>
          <td>
            <code class="bg-light"><%= uri %></code>
          </td>
          <td>
            <%= link_to t('doorkeeper.applications.buttons.authorize'), oauth_authorization_path(client_id: @application.uid, redirect_uri: uri, response_type: 'code', scope: @application.scopes), class: 'btn btn-success', target: '_blank' %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>

  <div class="col-md-4">
    <h3><%= t('.actions') %></h3>

    <p><%= link_to t('doorkeeper.applications.buttons.edit'), edit_oauth_application_path(@application), class: 'btn btn-primary' %></p>

    <p><%= render 'delete_form', application: @application, submit_btn_css: 'btn btn-danger' %></p>
  </div>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
doorkeeper-5.2.6 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.3.3 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.2.5 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.3.2 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.2.4 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.3.1 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.3.0 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.2.3 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.2.2 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.2.1 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.2.0 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.2.0.rc3 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.2.0.rc2 app/views/doorkeeper/applications/show.html.erb
doorkeeper-5.2.0.rc1 app/views/doorkeeper/applications/show.html.erb