123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Pragprog Books Online Store</title>
- <%= stylesheet_link_tag "scaffold" %>
- <%= stylesheet_link_tag "depot", :media => "all" %>
- <%= javascript_include_tag :defaults %>
- <%= csrf_meta_tag %>
- </head>
- <body id="store">
- <div id="banner">
- <%= image_tag("logo.png") %>
- <%= @page_title || "Pragmatic Bookshelf" %>
- </div>
- <div id="columns">
- <div id="side">
- <% if @cart %>
- <%= hidden_div_if(@cart.line_items.empty?, :id => "cart") do %>
- <%= render @cart %>
- <% end %>
- <% end %>
- <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 />
- <% if session[:user_id] %>
- <br />
- <%= link_to 'Orders', orders_path %><br />
- <%= link_to 'Products', products_path %><br />
- <%= link_to 'Users', users_path %><br />
- <br />
- <%= button_to 'Logout', logout_path, :method => :delete %>
- <% end %>
- </div>
- <div id="main">
- <%= yield %>
- </div>
- </div>
- </body>
- </html>
|