Decoupled carts and orders
[depot.git] / app / views / layouts / store.html.erb
index 77e86d9e23e08684c1cbb69f3c329f337ed50fd0..b1f928e99aa5dd06fc4e613f969626f74767372d 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">
-        <a href="http://www....">Home</a><br />
+        <% hidden_div_if(@cart.items.empty?, :id => "cart") do %>
+            <%= render(:partial => "cart" , :object => @cart) %>
+        <% end %>
+        <a href="/">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 />
@@ -22,8 +26,9 @@
         <% if flash[:notice] -%>
             <div id="notice"><%= flash[:notice] %></div>
         <% end -%>
-        
-        <%= yield :layout %>
+        <div id="main_panel">
+          <%= yield :layout %>
+        </div>
       </div>
     </div>
   </body>