-<h1><%= t('oauth.client_application.show.title', :app_name => @client_application.name) %></h1>
-<p>
- <b><%= t'oauth.client_application.show.key' %></b> <%=@client_application.key %>
-</p>
-<p>
- <b><%= t'oauth.client_application.show.secret' %></b> <%=@client_application.secret %>
-</p>
-<p>
- <b><%= t'oauth.client_application.show.url' %></b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
-</p>
-<p>
- <b><%= t'oauth.client_application.show.access_url' %></b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
-</p>
-<p>
- <b><%= t'oauth.client_application.show.authorize_url' %></b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
-</p>
+<% content_for :heading do %>
+ <h1><%= t(".title", :app_name => @client_application.name) %></h1>
+<% end %>
-<p><%= t'oauth.client_application.show.requests' %></p>
-<ul><% @client_application.permissions.each do |perm| %>
-<div class="field">
- <li><%= t('oauth.client_application.form.' + perm.to_s) %></li>
-</div>
-<% end %></ul>
-
-<p><%= t'oauth.client_application.show.support_notice' %></p>
+<dl class="row">
+ <dt class="col-sm-3"><%= t ".key" %></dt>
+ <dd class="col-sm-9"><%= @client_application.key %></dt>
+ <dt class="col-sm-3"><%= t ".secret" %></dt>
+ <dd class="col-sm-9"><%= @client_application.secret %></dd>
+ <dt class="col-sm-3"><%= t ".url" %></dt>
+ <dd class="col-sm-9">http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.request_token_path %></dd>
+ <dt class="col-sm-3"><%= t ".access_url" %></dt>
+ <dd class="col-sm-9">http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.access_token_path %></dd>
+ <dt class="col-sm-3"><%= t ".authorize_url" %></dt>
+ <dd class="col-sm-9">http<%= "s" if request.ssl? %>://<%= request.host_with_port %><%= @client_application.oauth_server.authorize_path %></dd>
+</dl>
-<p><%= link_to t('oauth.client_application.show.edit'), edit_oauth_client_url(@client_application) %></p>
+<div>
+ <p><%= t ".requests" %></p>
+ <ul>
+ <% @client_application.permissions.each do |perm| %>
+ <li><%= t("activerecord.attributes.client_application.#{perm}") %></li>
+ <% end %>
+ </ul>
+ <p><%= t ".support_notice" %></p>
+</div>
+<div>
+ <%= link_to t(".edit"), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class => "btn btn-outline-primary" %>
+ <%= 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" %>
+</div>