Commit 439229efa393391d1998248cdcf06d0a03c106eb
Exists in
master
and in
4 other branches
Merge pull request #2777 from zzet/add_project_button
Add assign project to team button on team page
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
app/views/projects/_new_form.html.haml
app/views/teams/_projects.html.haml
... | ... | @@ -3,11 +3,11 @@ |
3 | 3 | Projects |
4 | 4 | %small |
5 | 5 | (#{projects.count}) |
6 | - - if can? current_user, :manage_group, @group | |
6 | + - if can? current_user, :manage_user_team, @team | |
7 | 7 | %span.right |
8 | - = link_to new_project_path(namespace_id: @group.id), class: "btn very_small info" do | |
8 | + = link_to new_team_project_path(@team), class: "btn very_small info" do | |
9 | 9 | %i.icon-plus |
10 | - New Project | |
10 | + Assign Project | |
11 | 11 | %ul.well-list |
12 | 12 | - if projects.blank? |
13 | 13 | %p.nothing_here_message This team has no projects yet | ... | ... |
app/views/teams/members/_show.html.haml