Commit 45917935ef38cdb35b152dc8a04b37efb92f33f0

Authored by Andrey Kumanyaev
1 parent 5ee8c132

fix copied code. Add assign projects button.

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
app/views/teams/_projects.html.haml
@@ -3,11 +3,11 @@ @@ -3,11 +3,11 @@
3 Projects 3 Projects
4 %small 4 %small
5 (#{projects.count}) 5 (#{projects.count})
6 - - if can? current_user, :manage_group, @group 6 + - if can? current_user, :manage_user_team, @team
7 %span.right 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 %i.icon-plus 9 %i.icon-plus
10 - New Project 10 + Assign Project
11 %ul.well-list 11 %ul.well-list
12 - if projects.blank? 12 - if projects.blank?
13 %p.nothing_here_message This team has no projects yet 13 %p.nothing_here_message This team has no projects yet