diff --git a/app/views/events/_snapshot_event_row.html.erb b/app/views/events/_snapshot_event_row.html.erb index c26a72fc6a..2df23c61bc 100644 --- a/app/views/events/_snapshot_event_row.html.erb +++ b/app/views/events/_snapshot_event_row.html.erb @@ -1,15 +1,13 @@ <% num_locations = event.data.storage_locations.length %> -<% event.data.storage_locations.values.each_with_index do |loc, loc_index| %> - - <% if loc_index == 0 %> - <%= event.id %> - Snapshot - - <%= event.event_time.to_s %> - <% end %> - + + + <%= event.user&.name || "No Name Provided" %> + Snapshot +   + <%= event.event_time.to_s %> + + <% event.data.storage_locations.values.each_with_index do |loc, loc_index| %> <%= link_to storage_locs.find { |i| i.id == loc.id}.name, storage_location_path(loc.id) %> - <% loc.items.values.each do |entry| %> <% item = items.find { |i| i.id == entry.item_id} %> <% if item %> @@ -17,8 +15,11 @@ <% else %> Item <%= entry.item_id %> (deleted) <% end %> - <%= entry.quantity %>
+ <%= entry.quantity %> <% end %> - - -<% end %> +
+ <% end %> + +   +   +