Sha256: 919475ef7990e8695299a6ed10e833925d1bd497ff5577ed69e963f69f79f7e6

Contents?: true

Size: 1.51 KB

Versions: 26

Compression:

Stored size: 1.51 KB

Contents

<div class="flash"><%%= flash[:notice] %></div>
<h1>OAuth Client Applications</h1>
<%% unless @tokens.empty? %>
<p>The following tokens have been issued to applications in your name</p>
<table>
  <tr><th>Application</th><th>Issued</th><th>&nbsp;</th></tr>
  <%% @tokens.each do |token|%>
    <%% content_tag_for :tr, token do %>
      <td><%%= link_to token.client_application.name, token.client_application.url %></td>
      <td><%%= token.authorized_at %></td>
      <td>
        <%% form_tag :controller => 'oauth', :action => 'revoke' do %>
        <%%= hidden_field_tag 'token', token.token %>
        <%%= submit_tag "Revoke!" %>
        <%% end %>
      </td>
    <%% end %>
  <%% end %>

</table>
<%% end %>
<h3>Application Developers</h3>
<%% if @client_applications.empty? %>
  <p>
    Do you have an application you would like to register for use with us using the <a href="http://oauth.net">OAuth</a> standard?
  </p>
  <p>
    You must register your web application before it can make OAuth requests to this service
  </p>
<%% else %>
  <p>
    You have the following client applications registered:
  </p>
  <%% @client_applications.each do |client|%>
    <%% div_for client do %>
      <%%= link_to client.name, oauth_client_path(client) %>-
        <%%= link_to 'Edit', edit_oauth_client_path(client) %>
        <%%= link_to 'Delete', oauth_client_path(client), :confirm => "Are you sure?", :method => :delete %>
    <%% end %>
  <%% end %>
<%% end %>
<br />
<h3><%%= link_to "Register your application", :action => :new %></h3>

Version data entries

26 entries across 19 versions & 6 rubygems

Version Path
insrc-oauth-plugin-0.4.0.pre5 lib/generators/erb/oauth_provider_templates/index.html.erb
le1t0-oauth-plugin-0.4.0.pre4.001 lib/generators/erb/oauth_provider_templates/index.html.erb
oauth-plugin-0.4.0.pre4 lib/generators/erb/oauth_provider_templates/index.html.erb
oauth-plugin-0.4.0.pre3 lib/generators/erb/oauth_provider_templates/index.html.erb
oauth-plugin-0.4.0.pre2 lib/generators/erb/oauth_provider_templates/index.html.erb
oauth-plugin-0.4.0.pre1 lib/generators/erb/oauth_provider_templates/index.html.erb