Commit 978bc816 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #4163 from jdamick/slow_team_list

addresses issue #4156
parents 66c81767 63968c1a
- can_admin_project = (can? current_user, :admin_project, @project)
- team.each do |access, members| - team.each do |access, members|
- role = Project.access_options.key(access).pluralize - role = Project.access_options.key(access).pluralize
.ui-box{class: role.downcase} .ui-box{class: role.downcase}
...@@ -6,4 +7,4 @@ ...@@ -6,4 +7,4 @@
%span.light (#{members.size}) %span.light (#{members.size})
%ul.well-list %ul.well-list
- members.sort_by(&:user_name).each do |team_member| - members.sort_by(&:user_name).each do |team_member|
= render 'team_members/team_member', member: team_member = render 'team_members/team_member', member: team_member, current_user_can_admin_project: can_admin_project
- user = member.user - user = member.user
- allow_admin = can? current_user, :admin_project, @project - allow_admin = current_user_can_admin_project
%li{id: dom_id(user), class: "team_member_row user_#{user.id}"} %li{id: dom_id(user), class: "team_member_row user_#{user.id}"}
.row .row
.span4 .span4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment