X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=app%2Fviews%2Flayouts%2Fstore.html.erb;h=e4845d76207dea4ff6b78016578a527a2bbefaf8;hb=2e4e591080e228dec676acf40b9e7bc4b044b8bc;hp=7bd5325d42555b9ebe672c2d333b1960c732ffba;hpb=6af7ab424668bc5dce20630e1b112bc611edab63;p=depot.git diff --git a/app/views/layouts/store.html.erb b/app/views/layouts/store.html.erb index 7bd5325..e4845d7 100644 --- a/app/views/layouts/store.html.erb +++ b/app/views/layouts/store.html.erb @@ -5,6 +5,7 @@ Neil's Whimsical Online Store <%= stylesheet_link_tag "depot" , :media => "all" %> + <%= javascript_include_tag :defaults %>
- Home
+ <% if @cart %> + <% hidden_div_if(@cart.items.empty?, :id => "cart") do %> + <%= render(:partial => "cart" , :object => @cart) %> + <% end %> + <% end %> + Home
Questions
News
Contact
+ + <% if session[:user_id] %> +
+ <%= link_to 'Orders', :controller => 'orders' %>
+ <%= link_to 'Products', :controller => 'products' %>
+ <%= link_to 'Users', :controller => 'users' %>
+
+ <%= link_to 'Logout', :controller => 'admin', :action => 'logout' %> + <% end %> +
- <%= yield :layout %> + <% if flash[:notice] -%> +
<%= flash[:notice] %>
+ <% end -%> +
+ <%= yield :layout %> +