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>
10 <th><%= t ".application" %></th>
11 <th><%= t ".issued_at" %></th>
14 <% @tokens.each do |token| %>
16 <td><%= link_to token.client_application.name, token.client_application.url %></td>
17 <td><%= token.authorized_at %></td>
19 <%= form_tag :controller => "oauth", :action => "revoke" do %>
20 <%= hidden_field_tag "token", token.token %>
21 <%= submit_tag t(".revoke") %>
28 <h3><%= t ".my_apps" %></h3>
29 <% if @client_applications.empty? %>
30 <p><%= raw(t(".no_apps", :oauth => "<a href=\"https://oauth.net\">OAuth</a>")) %></p>
32 <p><%= t ".registered_apps" %></p>
33 <% @client_applications.each do |client| %>
34 <div class="client_application">
35 <%= link_to client.name, :action => :show, :id => client.id %>
39 <h3><%= link_to t(".register_new"), :action => :new %></h3>