Sha256: 77d009e35b3d30a5465af6ef1b98cb80419b865bd70b1aaf897f6aed513b2f40

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 KB

Contents

<h2>Authorizme plugin for authorization</h2>
<div>Authorizme version <%= Authorizme::VERSION %></div>

<% if @user %>
<h3>Current user <%= @user %></h3>
  
<% if @user.has_synchronize_request? %>
  <b>Synchronize Requests</b>
  <% @user.synchronize_requests.each do |sync_request| %>
    <div>User: <%= sync_request.requested_user %></div>
  <% end %>
<% end %>

<div><a href="<%= "/#{Authorizme::namespace}/logout" %>">Logout</a></div>

<% end %> 



<h3>Authorize with your credentials:</h3>
<%= form_tag "/#{Authorizme::namespace}/sessions" do %>
  <p>
    <%= label_tag :email %><br />
    <%= text_field_tag :email, params[:email] %>
  </p>
  <p>
    <%= label_tag :password %><br />
    <%= password_field_tag :password %>
  </p>
  <p class="button"><%= submit_tag "Log in" %></p>
<% end %>

<h3>or use one of those providers:</h3>
<%= link_to "Draugiem.lv", "/#{Authorizme::namespace}/login/draugiem" %>
<%= link_to "Twitter.com", "/#{Authorizme::namespace}/login/twitter" %>
<%= link_to "Facebook.com", "/#{Authorizme::namespace}/login/facebook" %>

<h3>or you can signup:</h3>
<%= link_to "Signup", "/#{Authorizme::namespace}/signup" %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
authorizme-1.0.0 app/views/authorizme/authorizme/index.html.erb
authorizme-0.0.11 app/views/authorizme/authorizme/index.html.erb
authorizme-0.0.10 app/views/authorizme/authorizme/index.html.erb
authorizme-0.0.9 app/views/authorizme/authorizme/index.html.erb
authorizme-0.0.8 app/views/authorizme/authorizme/index.html.erb
authorizme-0.0.7 app/views/authorizme/authorizme/index.html.erb
authorizme-0.0.6 app/views/authorizme/authorizme/index.html.erb
authorizme-0.0.5 app/views/authorizme/authorizme/index.html.erb
authorizme-0.0.4 app/views/authorizme/authorizme/index.html.erb