Commit a0b6c964c5f3b69aa98411a2fc7815f6c3a37854
1 parent
32ef2f37
Exists in
master
and in
4 other branches
Proper naming for project members page
Showing
5 changed files
with
10 additions
and
8 deletions
Show diff stats
app/views/projects/_settings_nav.html.haml
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | = nav_link(controller: [:team_members, :teams]) do |
7 | 7 | = link_to project_team_index_path(@project), class: "team-tab tab" do |
8 | 8 | %i.icon-group |
9 | - Project Members | |
9 | + Members | |
10 | 10 | = nav_link(controller: :deploy_keys) do |
11 | 11 | = link_to project_deploy_keys_path(@project) do |
12 | 12 | %span | ... | ... |
app/views/team_members/_group_members.html.haml
1 | 1 | .ui-box |
2 | 2 | %h5.title |
3 | - = link_to people_group_path(@group) do | |
4 | - Members of #{@group.name} group | |
3 | + %strong #{@group.name} Group | |
4 | + members (#{@group.users_groups.count}) | |
5 | + .pull-right | |
6 | + = link_to people_group_path(@group), class: 'btn btn-small' do | |
7 | + %i.icon-edit | |
5 | 8 | %ul.well-list |
6 | 9 | - @group.users_groups.order('group_access DESC').each do |member| |
7 | 10 | = render 'users_groups/users_group', member: member, show_controls: false | ... | ... |
app/views/team_members/_team.html.haml
... | ... | @@ -2,7 +2,8 @@ |
2 | 2 | - can_admin_project = (can? current_user, :admin_project, @project) |
3 | 3 | .ui-box |
4 | 4 | %h5.title |
5 | - Project members (#{members.count}) | |
5 | + %strong #{@project.name} Project | |
6 | + members (#{members.count}) | |
6 | 7 | %ul.well-list |
7 | 8 | - members.each do |team_member| |
8 | 9 | = render 'team_members/team_member', member: team_member, current_user_can_admin_project: can_admin_project | ... | ... |
app/views/team_members/index.html.haml
features/steps/project/project_active_tab.rb
... | ... | @@ -45,7 +45,7 @@ class ProjectActiveTab < Spinach::FeatureSteps |
45 | 45 | # Sub Tabs: Home |
46 | 46 | |
47 | 47 | Given 'I click the "Team" tab' do |
48 | - click_link('Project Members') | |
48 | + click_link('Members') | |
49 | 49 | end |
50 | 50 | |
51 | 51 | Given 'I click the "Attachments" tab' do |
... | ... | @@ -73,7 +73,7 @@ class ProjectActiveTab < Spinach::FeatureSteps |
73 | 73 | end |
74 | 74 | |
75 | 75 | Then 'the active sub tab should be Team' do |
76 | - ensure_active_sub_tab('Project Members') | |
76 | + ensure_active_sub_tab('Members') | |
77 | 77 | end |
78 | 78 | |
79 | 79 | Then 'the active sub tab should be Attachments' do | ... | ... |