Commit a28bc409 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve project team page usability

parent c5add8fe
.ui-box .ui-box
.title .title
%strong #{@group.name} Group %strong #{@group.name}
members (#{@group.users_groups.count}) group members (#{@group.users_groups.count})
.pull-right .pull-right
= link_to members_group_path(@group), class: 'btn btn-small' do = link_to members_group_path(@group), class: 'btn btn-small' do
%i.icon-edit %i.icon-edit
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
- can_admin_project = (can? current_user, :admin_project, @project) - can_admin_project = (can? current_user, :admin_project, @project)
.ui-box .ui-box
.title .title
%strong #{@project.name} Project %strong #{@project.name}
members (#{members.count}) project members (#{members.count})
%ul.well-list %ul.well-list
- members.each do |team_member| - members.each do |team_member|
= render 'team_member', member: team_member, current_user_can_admin_project: can_admin_project = render 'team_member', member: team_member, current_user_can_admin_project: can_admin_project
...@@ -11,6 +11,6 @@ ...@@ -11,6 +11,6 @@
%p.light %p.light
Read more about project permissions Read more about project permissions
%strong= link_to "here", help_permissions_path, class: "vlink" %strong= link_to "here", help_permissions_path, class: "vlink"
= render "team", members: @users_projects
- if @group - if @group
= render "group_members" = render "group_members"
= render "team", members: @users_projects
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