Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (28 sloc) 712 Bytes
<!doctype html>
<html>
<head>
<title>Dancr</title>
<link rel=stylesheet type=text/css href="<% css_url %>">
</head>
<body>
<div class=page>
<h1>Dancr</h1>
<div class=metanav>
<% IF not session.logged_in %>
<a href="<% login_url %>">log in</a>
<% ELSE %>
<!-- We'll show the username we have in our session object. -->
<p>Hello, <% session.username %> from GitHub
<!-- We also stored the avatar url in the session so we'll use that here -->
<img src='<% session.avatar %>' alt='avatar' />
<p>
<a href="<% logout_url %>">log out</a>
<% END %>
</div>
<% IF msg %>
<div class=flash> <% msg %> </div>
<% END %>
<% content %>
</div>
</body>
</html>