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