diff --git a/app/views/projects/_new_form.html.haml b/app/views/projects/_new_form.html.haml index 41a60214..5f7348d4 100644 --- a/app/views/projects/_new_form.html.haml +++ b/app/views/projects/_new_form.html.haml @@ -29,6 +29,6 @@ - if current_user.can_create_team? .clearfix .input.light - Want to share a team between projects? + Want to share a project between team? = link_to new_team_path, class: "btn very_small" do Create a team diff --git a/app/views/teams/_projects.html.haml b/app/views/teams/_projects.html.haml index 95202bc6..4d99d5c2 100644 --- a/app/views/teams/_projects.html.haml +++ b/app/views/teams/_projects.html.haml @@ -3,11 +3,11 @@ Projects %small (#{projects.count}) - - if can? current_user, :manage_group, @group + - if can? current_user, :manage_user_team, @team %span.right - = link_to new_project_path(namespace_id: @group.id), class: "btn very_small info" do + = link_to new_team_project_path(@team), class: "btn very_small info" do %i.icon-plus - New Project + Assign Project %ul.well-list - if projects.blank? %p.nothing_here_message This team has no projects yet diff --git a/app/views/teams/members/_show.html.haml b/app/views/teams/members/_show.html.haml index dbbb382d..740d5a49 100644 --- a/app/views/teams/members/_show.html.haml +++ b/app/views/teams/members/_show.html.haml @@ -18,7 +18,7 @@ .left.span2 %span Admin access - = check_box_tag :group_admin + = check_box_tag :group_admin, true, @team.admin?(user) .right - if current_user == user %span.btn.disabled This is you!