1 <div class="flash"><%= flash[:notice] %></div>
2 <h1>OAuth Client Applications</h1>
3 <% unless @tokens.empty? %>
4 <p>The following tokens have been issued to applications in your name</p>
6 <tr><th>Application</th><th>Issued</th><th> </th></tr>
7 <% @tokens.each do |token|%>
8 <% content_tag_for :tr, token do %>
9 <td><%= link_to token.client_application.name, token.client_application.url %></td>
10 <td><%= token.authorized_at %></td>
12 <% form_tag :controller => 'oauth', :action => 'revoke' do %>
13 <%= hidden_field_tag 'token', token.token %>
14 <%= submit_tag "Revoke!" %>
21 <h3>Application Developers</h3>
22 <% if @client_applications.empty? %>
24 Do you have an application you would like to register for use with us using the <a href="http://oauth.net">OAuth</a> standard?
27 You must register your web application before it can make OAuth requests to this service
31 You have the following client applications registered:
33 <% @client_applications.each do |client|%>
34 <% div_for client do %>
35 <%= link_to client.name, :action => :show, :id => client.id %>
39 <h3><%= link_to "Register your application", :action => :new %></h3>