Created
December 20, 2010 23:01
-
-
Save ch1ago/749177 to your computer and use it in GitHub Desktop.
This file contains hidden or 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>Teste</title> | |
<%= stylesheet_link_tag :all %> | |
<%= javascript_include_tag :defaults %> | |
<%= csrf_meta_tag %> | |
<style> | |
body {background:#C52F24;margin:0} | |
div.menu {width:800px;background:#D5E9F6;margin:0 auto;padding: 10px 20px;text-align:right;color:#333;} | |
div.menu a {color:#333;font-weight:bold} | |
div.menu a:hover {color:#fff} | |
div.content {width:800px;background:#fff;margin:0 auto;padding:20px;min-height:1000px} | |
</style> | |
</head> | |
<body> | |
<div class="menu"> | |
<% if current_user %> | |
<%= "Bem Vindo #{current_user.username}!" %> | |
<%= link_to "editar meu perfil", auth_edit_path %> | | |
<%= link_to "Ei, eu não sou #{current_user.username}", auth_logout_path %> | |
<% else %> | |
<%= link_to "Faça seu cadastro", auth_new_path %> | | |
<%= link_to "Faça Login", auth_login_path %> | |
<% end%> | |
</div> | |
<div class="content"> | |
<%= yield %> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment