]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/oauth-plugin/generators/oauth_provider/templates/index.html.erb
Merge branch 'master' into openid
[rails.git] / vendor / plugins / oauth-plugin / generators / oauth_provider / templates / index.html.erb
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>
5 <table>
6         <tr><th>Application</th><th>Issued</th><th>&nbsp;</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>
11                         <td>
12                                 <%% form_tag :controller => 'oauth', :action => 'revoke' do %>
13                                 <%%= hidden_field_tag 'token', token.token %>
14                                 <%%= submit_tag "Revoke!" %>
15                                 <%% end %>
16                         </td>
17                 <%% end %>
18         <%% end %>
19         
20 </table>
21 <%% end %>
22 <h3>Application Developers</h3>
23 <%% if @client_applications.empty? %>
24         <p>
25                 Do you have an application you would like to register for use with us using the <a href="http://oauth.net">OAuth</a> standard?
26         </p>
27         <p>
28                 You must register your web application before it can make OAuth requests to this service
29         </p>
30 <%% else %>
31         <p>
32                 You have the following client applications registered:
33         </p>
34         <%% @client_applications.each do |client|%>
35                 <%% div_for client do %>
36                         <%%= link_to client.name, :action => :show, :id => client.id %>
37                 <%% end %>
38         <%% end %>
39 <%% end %>
40 <h3><%%= link_to "Register your application", :action => :new %></h3>