]> git.openstreetmap.org Git - rails.git/blob - app/views/oauth_clients/index.html.erb
Remove user.terms.legale_button. Added in 9a9e13af but since removed
[rails.git] / app / views / oauth_clients / index.html.erb
1 <h1><%= t'oauth_clients.index.title' %></h1>
2 <% unless @tokens.empty? %>
3 <h3><%= t'oauth_clients.index.my_tokens' %></h3>
4 <p><%= t'oauth_clients.index.list_tokens' %></p>
5 <table>
6   <tr><th><%= t'oauth_clients.index.application' %></th>
7     <th><%= t'oauth_clients.index.issued_at' %></th><th>&nbsp;</th></tr>
8   <% @tokens.each do |token|%>
9     <% content_tag_for :tr, token do %>
10       <td><%= link_to token.client_application.name, token.client_application.url %></td>
11       <td><%= token.authorized_at %></td>
12       <td>
13         <% form_tag :controller => 'oauth', :action => 'revoke' do %>
14         <%= hidden_field_tag 'token', token.token %>
15         <%= submit_tag t('oauth_clients.index.revoke') %>
16         <% end %>
17       </td>
18     <% end %>
19   <% end %>     
20 </table>
21 <% end %>
22 <h3><%= t'oauth_clients.index.my_apps' %></h3>
23 <% if @client_applications.empty? %>
24 <p><%= t('oauth_clients.index.no_apps', :oauth => "<a href=\"http://oauth.net\">OAuth</a>") %></p>
25 <% else %>
26 <p><%= t'oauth_clients.index.registered_apps' %></p>
27 <% @client_applications.each do |client|%>
28   <% div_for client do %>
29     <%= link_to client.name, :action => :show, :id => client.id %>
30   <% end %>
31 <% end %>
32 <% end %>
33 <h3><%= link_to t('oauth_clients.index.register_new'), :action => :new %></h3>