1 <% content_for :heading do %>
2 <h1><%= @application.name %></h1>
5 <% secret = flash[:application_secret].presence || @application.plaintext_secret %>
7 <table class="table table-borderless">
9 <th><%= t ".client_id" %></th>
10 <td><code><%= @application.uid %></code></td>
12 <% unless secret.blank? && Doorkeeper.config.application_secret_hashed? -%>
14 <th><%= t ".client_secret" %></th>
16 <code><%= secret %></code>
17 <% if Doorkeeper.config.application_secret_hashed? -%>
19 <small class="text-danger"><%= t ".client_secret_warning" %></small>
25 <th><%= t ".permissions" %></th>
27 <ul class="list-unstyled mb-0">
28 <% @application.scopes.each do |scope| -%>
29 <li><%= t "oauth.scopes.#{scope}" %> <code class="text-muted">(<%= scope %>)</code></li>
35 <th><%= t ".redirect_uris" %></th>
37 <ul class="list-unstyled mb-0">
38 <% @application.redirect_uri.split.each do |uri| -%>
47 <%= link_to t(".edit"), edit_oauth_application_path(@application), :class => "btn btn-outline-primary" %>
48 <%= link_to t(".delete"), oauth_application_path(@application), { :method => :delete, :class => "btn btn-outline-danger", :data => { :confirm => t(".confirm_delete") } } %>