Created
June 23, 2011 14:56
-
-
Save thomasv314/1042682 to your computer and use it in GitHub Desktop.
Description of a Rails 3 View file
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><%= title %></title> | |
<%= stylesheet_link_tag :all %> | |
<link href="http://fonts.googleapis.com/css?family=Cantarell:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css" > | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> | |
<%= javascript_include_tag :defaults %> | |
<%= csrf_meta_tag %> | |
</head> | |
<body> | |
<div id="wrapper"> | |
<div class="header"> | |
<h1>Arthur Murray Promotions</h1> | |
<ul class="tabs"> | |
<% if user_signed_in? %> | |
<li><%= link_to "My Studios", studios_path %></li> | |
<li><%= link_to "My Leads", leads_path %></li> | |
<li><%= link_to "My Profile", edit_user_registration_path %></li> | |
<li><%= link_to "Sign Out", destroy_user_session_path %></li> | |
<% else %> | |
<li><%= link_to "Sign Up", new_user_registration_path %></li> | |
<li><%= link_to "Log In", new_user_session_path %></li> | |
<% end %> | |
</ul> | |
</div> | |
<div class="header-sub"> | |
<h1><%= sub_header %> </h1> | |
</div> | |
<div class="body"> | |
<% if flash[:notice] %> | |
<div class="notification"><%= flash[:notice] %></div> | |
<% end %> | |
<% if flash[:error] %> | |
<div class="error"><%= flash[:error] %></div> | |
<% end %> | |
<%= yield %> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment