<%= l(:label_member_list)%>

<%= error_messages_for 'member' %> <% roles = Role.find_all_givable members = @project.member_principals.includes(:roles, :principal).all.sort %> <% if members.any? %> <% members.each do |member| %>
<% next if member.new_record? %> <% unless member.created_on.nil? %> <%= content_tag "p", "#{format_date(member.created_on)}#{l(:label_member_since)}", :class => "float_right member_since" %> <% end %> <%= member.user.nil? ? '' : (link_to image_tag(url_to_avatar(member.user), :class => 'avatar'), :class => "avatar") %> <%= content_tag "div", link_to_user(member.principal), :class => "nomargin avatar_name" %> <% if @project.project_type == 1 %>

<% if member.roles.sort.collect(&:to_s).join(', ') =='Manager' %> 老师 <% elsif member.roles.sort.collect(&:to_s).join(', ') =='Reporter' %> 学生 <% elsif member.roles.sort.collect(&:to_s).join(', ') =='TA' %> 助教 <% else %> <% end %>

<% else%> <%= content_tag "div", content_tag("p", member.roles.sort.collect(&:to_s).join(', ')), :class => "clear avatar_name" %> <% end %> <%= call_hook(:view_projects_settings_members_table_row, { :project => @project, :member => member}) %>
<% end; reset_cycle %> <% else %>

<%= l(:label_no_data) %>

<% end %>