Decoupled carts and orders
[depot.git] / app / views / layouts / store.html.erb
index 5f2d4f10bd04a50ff6cedb36881cd420bc9fd805..b1f928e99aa5dd06fc4e613f969626f74767372d 100644 (file)
     </div>
     <div id="columns">
       <div id="side">
-        <div id="cart">
+        <% hidden_div_if(@cart.items.empty?, :id => "cart") do %>
             <%= render(:partial => "cart" , :object => @cart) %>
-        </div>
-        <a href="http://www....">Home</a><br />
+        <% 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 />
@@ -26,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>