Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (28 sloc) 861 Bytes
<!DOCTYPE html>
<html>
<head>
<title>Sinatra & Sorcery</title>
</head>
<body>
<div id="nav">
<% if current_user %>
<a href=<%= url('/edit/'+current_user.id.to_s) %>>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 %>
</div>
<% if current_user %>
<div id="current_users"> Currently active users: <%= current_users_list %></div>
<% end %>
<div>
<p id="notice"><%= @notice %></p>
<p id="alert"><%= @alert %></p>
</div>
<%= yield %>
</body>
</html>