show "no data" label when there's nothing to display on project member list
git-svn-id: http://redmine.rubyforge.org/svn/trunk@256 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ddd0796e40
commit
8fa96feb1f
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue