tap/app/views/orders/_user_list.html.erb

14 lines
607 B
Text
Raw Normal View History

2014-12-10 05:13:17 +01:00
<% users.each do |user| %>
<div class="thumbnail overview">
<%= link_to image_tag("http://placekitten.com/g/50/50", class: "img-circle dagschotel"), user %>
<% if user.avatar.exists? %>
<%= link_to image_tag(user.avatar , class: "img-circle avatar"), new_user_order_path(user) %>
<% else %>
<%= link_to image_tag("http://babeholder.pixoil.com/img/190/190", class: "img-circle user_img"), new_user_order_path(user) %>
<% end %>
2014-12-09 20:33:11 +01:00
2014-12-10 05:13:17 +01:00
<%= link_to user.name , new_user_order_path(user), class: "btn btn-info",
style: get_color_style(user) %>
</div>
<% end %>