diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-06 10:58:24 +0000 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-09-06 10:58:24 +0000 |
commit | ddb3692a2218e97dfcc256e21a0fccc97c5d9a56 (patch) | |
tree | aabb5e0b0d6f37ee068a8804ccef46b994d4afba /app/views/dashboard/_projects_head.html.haml | |
parent | f497f170697c838747bb7cdaca2d1939f843a00c (diff) | |
download | gitlab-ce-ddb3692a2218e97dfcc256e21a0fccc97c5d9a56.tar.gz |
Clean up new navigation templates
Diffstat (limited to 'app/views/dashboard/_projects_head.html.haml')
-rw-r--r-- | app/views/dashboard/_projects_head.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/dashboard/_projects_head.html.haml b/app/views/dashboard/_projects_head.html.haml index 1f9a5b401b6..e2a1914ada2 100644 --- a/app/views/dashboard/_projects_head.html.haml +++ b/app/views/dashboard/_projects_head.html.haml @@ -1,7 +1,7 @@ = content_for :flash_message do = render 'shared/project_limit' -- if show_new_nav? && current_user.can_create_project? +- if current_user.can_create_project? - content_for :breadcrumbs_extra do = link_to "New project", new_project_path, class: 'btn btn-new' @@ -19,8 +19,8 @@ = link_to explore_root_path, title: 'Explore', data: {placement: 'right'} do Explore projects - .nav-controls{ class: ("nav-controls-new-nav" if show_new_nav?) } + .nav-controls.nav-controls-new-nav = render 'shared/projects/search_form' = render 'shared/projects/dropdown' - if current_user.can_create_project? - = link_to "New project", new_project_path, class: "btn btn-new #{("visible-xs" if show_new_nav?)}" + = link_to "New project", new_project_path, class: "btn btn-new visible-xs" |