diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-03 11:58:06 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-03 11:58:06 +0100 |
commit | 08a0af9fcf4de2ae1f56c46104eb0ae171db38df (patch) | |
tree | b6228c21d7fd293c4e6c4ad76e48c6deb0cc2912 /app/views/dashboard/_projects_head.html.haml | |
parent | e95f81d2271f0b82f63e16cd6c7e3d0734084e03 (diff) | |
download | gitlab-ce-08a0af9fcf4de2ae1f56c46104eb0ae171db38df.tar.gz |
moved more action buttons
Diffstat (limited to 'app/views/dashboard/_projects_head.html.haml')
-rw-r--r-- | app/views/dashboard/_projects_head.html.haml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/views/dashboard/_projects_head.html.haml b/app/views/dashboard/_projects_head.html.haml index 64b737ee886..1f9a5b401b6 100644 --- a/app/views/dashboard/_projects_head.html.haml +++ b/app/views/dashboard/_projects_head.html.haml @@ -1,5 +1,10 @@ = content_for :flash_message do = render 'shared/project_limit' + +- if show_new_nav? && current_user.can_create_project? + - content_for :breadcrumbs_extra do + = link_to "New project", new_project_path, class: 'btn btn-new' + .top-area.scrolling-tabs-container.inner-page-scroll-tabs .fade-left= icon('angle-left') .fade-right= icon('angle-right') @@ -14,9 +19,8 @@ = link_to explore_root_path, title: 'Explore', data: {placement: 'right'} do Explore projects - .nav-controls + .nav-controls{ class: ("nav-controls-new-nav" if show_new_nav?) } = render 'shared/projects/search_form' = render 'shared/projects/dropdown' - if current_user.can_create_project? - = link_to new_project_path, class: 'btn btn-new' do - New project + = link_to "New project", new_project_path, class: "btn btn-new #{("visible-xs" if show_new_nav?)}" |