<% for product in provider.products.order(:name) %> <% orphaned = orphaned_product_ids.include?(product.id) %> <% if product_map[product.id] %> <% contents = product_map[product.id].sort{|p1, p2| p1.content.name <=> p2.content.name} %> <% has_content = !orphaned || product.repositories.length > 0 %> <% if has_content %> <% end %> <% end %> <% end %>
<%= _("Product") %>
<%= "#{product.name} " + (orphaned ? _('(Orphaned)') : '') %>
<% for product_content in contents %> <% if !orphaned || product.repositories.detect {|repo| repo.cp_label == product_content.content.label} %> <% end %> <% end %>
<%= _('Repository Set') %>