<%= start_bubble_wrap("light_blue","black","inventory_wrapper") %> <%= start_bubble_wrap("pink","light_blue","inventory_target") %> <%= end_bubble_wrap("pink","light_blue") %> <% if @user.user_items %> <% # 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 %>" /> <% end -%> <% end %> <%= end_bubble_wrap("light_blue","black") %>