1 <% content_for :heading do %>
2 <h1><%= t ".title" %></h1>
5 <% unless @tokens.empty? %>
6 <h3><%= t ".my_tokens" %></h3>
7 <p><%= t ".list_tokens" %></p>
9 <tr><th><%= t ".application" %></th>
10 <th><%= t ".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(".revoke") %>
25 <h3><%= t ".my_apps" %></h3>
26 <% if @client_applications.empty? %>
27 <p><%= raw(t(".no_apps", :oauth => "<a href=\"https://oauth.net\">OAuth</a>")) %></p>
29 <p><%= t ".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(".register_new"), :action => :new %></h3>