Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (28 sloc) 861 Bytes
<!DOCTYPE html>
<title>Sinatra & Sorcery</title>
<div id="nav">
<% if current_user %>
<a href=<%= url('/edit/' %>>Edit Profile</a>
<a href=<%= url('/logout') %>>Logout</a>
<% else %>
<a href=<%= url('/users/new') %>>Register</a> |
<a href=<%= url('/login') %>>Login</a> |
<a href=<%= url('/login/http') %>>Login from HTTP</a> |
<a href=<%= url('/auth_at_provider?provider=twitter') %>>Login with Twitter</a> |
<a href=<%= url('/auth_at_provider?provider=facebook') %>>Login with Facebook</a>
<% end %>
<% if current_user %>
<div id="current_users"> Currently active users: <%= current_users_list %></div>
<% end %>
<p id="notice"><%= @notice %></p>
<p id="alert"><%= @alert %></p>
<%= yield %>