diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-06 09:38:48 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-06 16:07:48 +0100 |
commit | 632b24820e4a0bc0e96a2e5900ca6f0aa1e857c5 (patch) | |
tree | 497261299bb77994ec1cbd49848e371fc3a37549 /app/views/projects/snippets | |
parent | cdd8f2f345aeb3fb05bbe8f567e72b717f388636 (diff) | |
download | gitlab-ce-632b24820e4a0bc0e96a2e5900ca6f0aa1e857c5.tar.gz |
Moves the action buttons out of the breadcrumbs
Closes #36459
Diffstat (limited to 'app/views/projects/snippets')
-rw-r--r-- | app/views/projects/snippets/index.html.haml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/views/projects/snippets/index.html.haml b/app/views/projects/snippets/index.html.haml index 1803e7f7211..65efc083fdd 100644 --- a/app/views/projects/snippets/index.html.haml +++ b/app/views/projects/snippets/index.html.haml @@ -1,15 +1,11 @@ - page_title "Snippets" -- if can?(current_user, :create_project_snippet, @project) - - content_for :breadcrumbs_extra do - = link_to "New snippet", new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new", title: "New snippet" - - if current_user .top-area - include_private = @project.team.member?(current_user) || current_user.admin? = render partial: 'snippets/snippets_scope_menu', locals: { subject: @project, include_private: include_private } - .nav-controls.visible-xs + .nav-controls - if can?(current_user, :create_project_snippet, @project) = link_to "New snippet", new_project_snippet_path(@project), class: "btn btn-new", title: "New snippet" |