<% if @principals_by_role.any? %>

<%= sprite_icon('group', l(:label_member_plural)) %>

<% @principals_by_role.keys.sort.each do |role| %>

<%= role %>: <%= @principals_by_role[role].sort.collect{|p| link_to_principal(p, :class => p.is_a?(Group) ? 'icon icon-group' : nil)}.join(", ").html_safe %>

<% end %>
<% end %>