1 <% content_for :heading do %>
2 <h1><%= t(".title", :app_name => @client_application.name) %></h1>
6 <dt class="col-sm-3"><%= t ".key" %></dt>
7 <dd class="col-sm-9"><%= @client_application.key %></dt>
8 <dt class="col-sm-3"><%= t ".secret" %></dt>
9 <dd class="col-sm-9"><%= @client_application.secret %></dd>
10 <dt class="col-sm-3"><%= t ".url" %></dt>
11 <dd class="col-sm-9">http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.request_token_path %></dd>
12 <dt class="col-sm-3"><%= t ".access_url" %></dt>
13 <dd class="col-sm-9">http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.access_token_path %></dd>
14 <dt class="col-sm-3"><%= t ".authorize_url" %></dt>
15 <dd class="col-sm-9">http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.authorize_path %></dd>
19 <p><%= t ".requests" %></p>
21 <% @client_application.permissions.each do |perm| %>
22 <li><%= t("activerecord.attributes.client_application." + perm.to_s) %></li>
25 <p><%= t ".support_notice" %></p>
29 <%= link_to t(".edit"), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class => "btn btn-outline-primary" %>
30 <%= link_to t(".delete"), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t(".confirm") }, :class => "btn btn-outline-danger" %>