-<h1>OAuth details for <%=@client_application.name %></h1>
-<p>
- <b>Consumer Key:</b> <%=@client_application.key %>
-</p>
-<p>
- <b>Consumer Secret:</b> <%=@client_application.secret %>
-</p>
-<p>
- <b>Request Token URL</b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
-</p>
-<p>
- <b>Access Token URL</b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
-</p>
-<p>
- <b>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 %>
+<div class='prose'>
+ <p>
+ <strong><%= t '.key' %></strong> <%=@client_application.key %>
+ </p>
+ <p>
+ <strong><%= t '.secret' %></strong> <%=@client_application.secret %>
+ </p>
+ <p>
+ <strong><%= t '.url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
+ </p>
+ <p>
+ <strong><%= t '.access_url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
+ </p>
+ <p>
+ <strong><%= t '.authorize_url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
+ </p>
-<p>
- We support hmac-sha1 (recommended) as well as plain text in ssl mode.
-</p>
\ No newline at end of file
+ <p><%= t '.requests' %></p>
+ <ul><% @client_application.permissions.each do |perm| %>
+ <div class="field">
+ <li><%= t('oauth_clients.form.' + perm.to_s) %></li>
+ </div>
+ <% end %></ul>
+
+ <p><%= t '.support_notice' %></p>
+</div>
+<div class="buttons">
+ <%= button_to t('.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class=> "oauth-edit" %>
+ <%= button_to t('.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('.confirm') }, :class=> "oauth-delete deemphasize" %>
+</div>