1 <% content_for :heading do %>
 
   2   <h1><%= t'oauth_clients.index.title' %></h1>
 
   5 <% unless @tokens.empty? %>
 
   6 <h3><%= t'oauth_clients.index.my_tokens' %></h3>
 
   7 <p><%= t'oauth_clients.index.list_tokens' %></p>
 
   9   <tr><th><%= t'oauth_clients.index.application' %></th>
 
  10     <th><%= t'oauth_clients.index.issued_at' %></th><th> </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>
 
  16         <%= form_tag :controller => 'oauth', :action => 'revoke' do %>
 
  17         <%= hidden_field_tag 'token', token.token %>
 
  18         <%= submit_tag t('oauth_clients.index.revoke') %>
 
  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>
 
  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 %>
 
  36 <h3><%= link_to t('oauth_clients.index.register_new'), :action => :new %></h3>