Skip to content

Commit

Permalink
layout.html.erb
Browse files Browse the repository at this point in the history
  • Loading branch information
James Fernandez committed Jul 29, 2017
1 parent 86970f1 commit 6252c8b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/views/layout.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

<!DOCTYPE html>
<html>
<head>
<title>My Movie Collection</title>
</head>
<body>
<nav>
<% if logged_in? %>
<!-- need links -->
<h3>Welcome, <%= current_user.username.upcase_first %>! <!--Capitalize 1st letter of username-->
</h3>
<% else %>
<a href = "/signup">Signup</a>
<a href = "/login">Login</a>
<% end %>
</nav>
<div class = "container">
<h1>My Movie Collection</h1>
<%= yield %> <!--Layout will render this html view throughout all pages via yield-->
</div>
</body>
</html>

0 comments on commit 6252c8b

Please sign in to comment.