]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth_clients/show.html.erb
Make titles in note popups link to the note
[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 <p>
5   <b><%= t'oauth_clients.show.key' %></b> <%=@client_application.key %>
6 </p>
7 <p>
8   <b><%= t'oauth_clients.show.secret' %></b> <%=@client_application.secret %>
9 </p>
10 <p>
11   <b><%= t'oauth_clients.show.url' %></b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.request_token_path %>
12 </p>
13 <p>
14   <b><%= t'oauth_clients.show.access_url' %></b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.access_token_path %>
15 </p>
16 <p>
17   <b><%= t'oauth_clients.show.authorize_url' %></b> http<%='s' if request.ssl? %>://<%= request.host_with_port %><%=@client_application.oauth_server.authorize_path %>
18 </p>
19
20 <p><%= t'oauth_clients.show.requests' %></p>
21 <ul><% @client_application.permissions.each do |perm| %>
22 <div class="field">
23   <li><%= t('oauth_clients.form.' + perm.to_s) %></li>
24 </div>
25 <% end %></ul>
26
27 <p><%= t'oauth_clients.show.support_notice' %></p>
28
29 <table>
30 <tr>
31 <td><%= button_to t('oauth_clients.show.edit'), edit_oauth_client_path(@client_application.user.display_name, @client_application), :method => :get %></td>
32 <td><%= 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') } %></td>
33 </tr>
34 </table>