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|
- role = Project.access_options.key(access).pluralize
.ui-box{class: role.downcase}
......@@ -6,4 +7,4 @@
%span.light (#{members.size})
%ul.well-list
- 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
- 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}"}
.row
.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