% # if active item isn't in the first 10, add it to the array of items
items = @user.user_items.reload.first(10)
%>
<% items.each do |item| -%>
![]()
active" style="cursor:move;float:left;margin-right:5px;margin-top:5px;"
id="<%= item.id %>"
src="/images/item_<%= item.item.id %>.png" width="48" height="48"
alt="<%= item.item.description %>" />
<%= item.uses_left %> uses left.
<%= "Active" if item.active? -%>
<% end -%>
<% if @user.user_items.size > 10 %>(<%= @user.user_items.size - 10 %> more)<% end %>