<%= render partial: 'flash' %>
<%= render 'sidebar' %>
<% if @orders.any? %>

Previously ordered

Total: Specifics: <%= content_tag :ul do %> <% @products.each do |p| %> <%= content_tag :li, pluralize(p.count, p.name) %> <% end %> <% end %>

All orders (<%= @user.orders_count %>)

<%= render @orders %>
<%= will_paginate @orders %>
<% end %>