]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth_clients/show.html.erb
Improve layout and styling of forms
[rails.git] / app / views / oauth_clients / show.html.erb
index 131696ed305fd9f4dc1fc712e03dc7a6bc0af1d4..a23ce082d05fc91ea1d01a0d0591073a138bf1a4 100644 (file)
@@ -1,32 +1,33 @@
 <% content_for :heading do %>
   <h1><%= t('oauth_clients.show.title', :app_name => @client_application.name) %></h1>
 <% end %>
-<p>
-  <b><%= t'oauth_clients.show.key' %></b> <%=@client_application.key %>
-</p>
-<p>
-  <b><%= t'oauth_clients.show.secret' %></b> <%=@client_application.secret %>
-</p>
-<p>
-  <b><%= t'oauth_clients.show.url' %></b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
-</p>
-<p>
-  <b><%= t'oauth_clients.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_clients.show.authorize_url' %></b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
-</p>
+<div class='prose'>
+  <p>
+    <strong><%= t'oauth_clients.show.key' %></strong> <%=@client_application.key %>
+  </p>
+  <p>
+    <strong><%= t'oauth_clients.show.secret' %></strong> <%=@client_application.secret %>
+  </p>
+  <p>
+    <strong><%= t'oauth_clients.show.url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
+  </p>
+  <p>
+    <strong><%= t'oauth_clients.show.access_url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
+  </p>
+  <p>
+    <strong><%= t'oauth_clients.show.authorize_url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
+  </p>
 
-<p><%= t'oauth_clients.show.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'oauth_clients.show.support_notice' %></p>
+  <p><%= t'oauth_clients.show.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'oauth_clients.show.support_notice' %></p>
+</div>
 <div class="buttons">
-  <%= button_to t('oauth_clients.show.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get %>
-  <%= button_to t('oauth_clients.show.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('oauth_clients.show.confirm') } %>
+  <%= button_to t('oauth_clients.show.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class=> "oauth-edit" %>
+  <%= button_to t('oauth_clients.show.delete'), oauth_client_path(@client_application.user.display_name, @client_application), :method => :delete, :data => { :confirm => t('oauth_clients.show.confirm') }, :class=> "oauth-delete deemphasize" %>
 </div>