Commit 7b9b9f70 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix project create link on group page

parent 65105ff3
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.panel-heading.clearfix .panel-heading.clearfix
.input-group .input-group
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control' = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control'
- if current_user.can_create_project? - if can? current_user, :create_projects, @group
.input-group-addon.dash-new-project .input-group-addon.dash-new-project
= link_to new_project_path(namespace_id: @group.id) do = link_to new_project_path(namespace_id: @group.id) do
%strong New project %strong New project
......
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