|
|
|
@ -28,13 +28,20 @@ See doc/COPYRIGHT.md for more details. |
|
|
|
|
<span class="widget-box--header-title"><%=t(:label_member_plural)%></span> |
|
|
|
|
</h3> |
|
|
|
|
|
|
|
|
|
<% if @project.members.count > 0 && users_by_role(50).any? %> |
|
|
|
|
<div class="members overview" id="users_per_role"> |
|
|
|
|
<p> |
|
|
|
|
<%= render partial: "members", |
|
|
|
|
locals: { users_by_role: users_by_role(50), |
|
|
|
|
count_users_by_role: count_users_by_role } %> |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
<% if current_user.allowed_to?(:view_members, project) %> |
|
|
|
|
<% if @project.members.count > 0 && users_by_role(50).any? %> |
|
|
|
|
<div class="members overview" id="users_per_role"> |
|
|
|
|
<p> |
|
|
|
|
<%= render partial: "members", |
|
|
|
|
locals: { users_by_role: users_by_role(50), |
|
|
|
|
count_users_by_role: count_users_by_role } %> |
|
|
|
|
</p> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
<% else %> |
|
|
|
|
<div class="members overview"> |
|
|
|
|
<%= t(:label_no_visible_members) %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
<% if current_user.allowed_to?(:manage_members, project) %> |
|
|
|
|