tap/app/views/orders/overview.html.erb
2014-12-09 13:10:36 +01:00

15 lines
502 B
Text

<div class="col-md-6 ">
<h3 class="center" >sort by name</h3>
<% @users_by_name.each do |user| %>
<%= link_to user.name , new_user_order_path(user), class: "btn btn-info overview",
style: get_color_style(user) %>
<% end %>
</div>
<div class="col-md-6">
<h3 class="center">sort by orders</h3>
<% @users_by_order.each do |user| %>
<%= link_to user.name , new_user_order_path(user), class: "btn btn-info overview",
style: get_color_style(user) %>
<% end %>
</div>