在更新下

This commit is contained in:
yanxd 2014-05-30 16:05:42 +08:00
parent d2b90b98cc
commit bced2476cd
1 changed files with 3 additions and 2 deletions

View File

@ -1,9 +1,10 @@
<%= error_messages_for 'member' %>
<%
roles = Role.givable.all
if @project.project_type == Project::ProjectType_course
roles = Role.givable.all[3..5]
roles = roles[3..5]
else
roles = Role.givable.all[0..2]
roles = roles[0..2]
end
members = @project.member_principals.includes(:roles, :principal).all.sort
%>