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