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