]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth_clients/show.html.erb
Merging 16820:16891 from trunk.
[rails.git] / app / views / oauth_clients / show.html.erb
index 5ec45aef5b6115c3b361ed8f676fba6f6a003408..df8fbc2481b01d3a3db975b939c6653fef39d6eb 100644 (file)
@@ -1,20 +1,28 @@
-<h1>OAuth details for <%=@client_application.name %></h1>
+<h1><%= t('oauth.client_application.show.title', :app_name => @client_application.name) %></h1>
 <p>
-       <b>Consumer Key:</b> <%=@client_application.key %>
+       <b><%= t'oauth.client_application.show.key' %></b> <%=@client_application.key %>
 </p>
 <p>
-       <b>Consumer Secret:</b> <%=@client_application.secret %>
+       <b><%= t'oauth.client_application.show.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 %>
+       <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>Access Token URL</b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
+       <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>Authorize URL</b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
+       <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>
 
-<p>
-       We support hmac-sha1 (recommended) as well as plain text in ssl mode.
-</p>
\ No newline at end of file
+<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>
+
+<p><%= link_to t('oauth.client_application.show.edit'), edit_oauth_client_url(@client_application.user.display_name, @client_application) %></p>
+