Finished iteration D.3 in chapter 9
[depot.git] / app / views / layouts / store.html.erb
index 7bd5325d42555b9ebe672c2d333b1960c732ffba..5f2d4f10bd04a50ff6cedb36881cd420bc9fd805 100644 (file)
@@ -5,6 +5,7 @@
   <head>
     <title>Neil's Whimsical Online Store</title>
     <%= stylesheet_link_tag "depot" , :media => "all" %>
+    <%= javascript_include_tag :defaults %>
   </head>
   <body id="store">
     <div id="banner">
     </div>
     <div id="columns">
       <div id="side">
+        <div id="cart">
+            <%= render(:partial => "cart" , :object => @cart) %>
+        </div>
         <a href="http://www....">Home</a><br />
         <a href="http://www..../faq">Questions</a><br />
         <a href="http://www..../news">News</a><br />
         <a href="http://www..../contact">Contact</a><br />
       </div>
       <div id="main">
+        <% if flash[:notice] -%>
+            <div id="notice"><%= flash[:notice] %></div>
+        <% end -%>
+        
         <%= yield :layout %>
       </div>
     </div>