Patch #252 ยป sort_users.diff
app/views/projects/settings/_members.rhtml (working copy) | ||
---|---|---|
1 | 1 |
<%= error_messages_for 'member' %> |
2 | 2 |
<% roles = Role.find_all_givable %> |
3 |
<% users = User.find_active(:all) - @project.users %> |
|
3 |
<% users = User.find_active(:all,:order => "users.firstname,users.lastname") - @project.users %>
|
|
4 | 4 |
<% # members sorted by role position |
5 | 5 |
members = @project.members.find(:all, :include => [:role, :user]).sort{|x,y| x.role.position <=> y.role.position} %> |
6 | 6 |
|