<% @source.grouped_direct_predicates.each do |namespace, group| %>

<%= image_tag 'arrow_grouped.png', :size => '12x12', :class => 'arrow_grouped' %> <%=h namespace.titleize %> <%= add_another_predicate namespace %>

<% group.each do |name, sources| %> <%= render :partial => "predicate", :collection => sources.flatten, :locals => { :namespace => namespace, :name => name } %> <% end %>
<% end %>