Improve browsing of (Ldap)Group.
[gitorious:mainline.git] / app / views / groups / _group_members.html.erb
1 <% if @memberships.empty? -%>
2   <ul><li><em>None</em></li></ul>
3 <% end -%>
4 <% @memberships.group_by(&:role).each do |role, memberships| -%>
5   <ul>
6     <li class="hint"><%=h role.name -%>s
7       <ul>
8         <% memberships.each do |membership| -%>
9           <li>
10             <div class="user">
11               <%= avatar(membership.user, :size => 16, :style => "tiny") %>
12               <%= link_to h(membership.user.title), user_path(membership.user) -%>
13             </div>
14           </li>
15         <% end -%>
16     </li></ul>
17 <% end -%>
18 </ul>