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>
 
   6   <tr><th><%= t'oauth_clients.index.application' %></th>
 
   7     <th><%= t'oauth_clients.index.issued_at' %></th><th> </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>
 
  13         <%= form_tag :controller => 'oauth', :action => 'revoke' do %>
 
  14         <%= hidden_field_tag 'token', token.token %>
 
  15         <%= submit_tag t('oauth_clients.index.revoke') %>
 
  22 <h3><%= t'oauth_clients.index.my_apps' %></h3>
 
  23 <% if @client_applications.empty? %>
 
  24 <p><%= raw(t('oauth_clients.index.no_apps', :oauth => "<a href=\"http://oauth.net\">OAuth</a>")) %></p>
 
  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 %>
 
  33 <h3><%= link_to t('oauth_clients.index.register_new'), :action => :new %></h3>