<%= render partial: 'flash' %>

<%= @user.nickname %> <% if can? :edit, @user %> <%= link_to content_tag(:small, content_tag(:span, "", class: "glyphicon glyphicon-cog")), edit_user_path(@user) %> <% end %>

<% if can? :edit, @user %> <% end %>
<% 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 %>