<%= render partial: 'flash' %>
<%= render 'sidebar' %>
<% if (all_orders = @user.all_orders(params[:page])).any? %>

Previously ordered

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

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

<%= render all_orders %>
<%= will_paginate all_orders %>
<% end %>