]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth_clients/show.html.erb
Merge remote-tracking branch 'osmlab/user-display'
[rails.git] / app / views / oauth_clients / show.html.erb
1 <% content_for :heading do %>
2   <h1><%= t('oauth_clients.show.title', :app_name => @client_application.name) %></h1>
3 <% end %>
4 <div class='prose'>
5   <p>
6     <strong><%= t'oauth_clients.show.key' %></strong> <%=@client_application.key %>
7   </p>
8   <p>
9     <strong><%= t'oauth_clients.show.secret' %></strong> <%=@client_application.secret %>
10   </p>
11   <p>
12     <strong><%= t'oauth_clients.show.url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
13   </p>
14   <p>
15     <strong><%= t'oauth_clients.show.access_url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
16   </p>
17   <p>
18     <strong><%= t'oauth_clients.show.authorize_url' %></strong> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
19   </p>
20
21   <p><%= t'oauth_clients.show.requests' %></p>
22   <ul><% @client_application.permissions.each do |perm| %>
23   <div class="field">
24     <li><%= t('oauth_clients.form.' + perm.to_s) %></li>
25   </div>
26   <% end %></ul>
27
28   <p><%= t'oauth_clients.show.support_notice' %></p>
29 </div>
30 <div class="buttons">
31   <%= button_to t('oauth_clients.show.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get, :class=> "oauth-edit" %>
32   <%= 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" %>
33 </div>