Created
December 29, 2012 15:47
-
-
Save gideondsouza/4407696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment