summaryrefslogtreecommitdiffstats
path: root/app/views/projects/list_members.rhtml
blob: fcfb4f7c0dcec245b15c3c2a0c3932521422105f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<h2><%=l(:label_member_plural)%></h2>

<% if @members.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>

<% members = @members.group_by {|m| m.role } %>
<% members.keys.sort{|x,y| x.position <=> y.position}.each do |role| %>
<h3><%= role.name %></h3>
<ul>
<% members[role].each do |m| %>
<li><%= link_to m.name, :controller => 'account', :action => 'show', :id => m.user %> (<%= format_date m.created_on %>)</li>
<% end %>
</ul>
<% end %>