diff options
-rw-r--r-- | app/controllers/projects_controller.rb | 2 | ||||
-rw-r--r-- | app/views/projects/list_members.rhtml | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 7f2025ea1..0bd50fdb2 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -171,7 +171,7 @@ class ProjectsController < ApplicationController # Show members list of @project
def list_members
- @members = @project.members
+ @members = @project.members.find(:all)
end
# Add a new document to @project
diff --git a/app/views/projects/list_members.rhtml b/app/views/projects/list_members.rhtml index d7b6c5bcb..e98a8c678 100644 --- a/app/views/projects/list_members.rhtml +++ b/app/views/projects/list_members.rhtml @@ -1,5 +1,7 @@ <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>
|