% current_class = params[:last_object_class] %>
<% @objects.each do |object| %>
<% icon_class = fa_icon_class_for_class(object.class) %>
<% if object.class.to_s != current_class %>
<% current_class = object.class.to_s %>
<%= object.class_for_display.pluralize.downcase %>
<% end %>
<% if (name_link = @objects.links_for(object, 'name').first) %>
<%= name_link.name %>
<%= object.uuid %>
<% elsif object.respond_to?(:name) and object.name and object.name.length > 0 %>
<%= object.name %>
<%= object.uuid %>
<% else %>
<%= object.uuid %>
<% end %>
<% end %>