summaryrefslogtreecommitdiff
path: root/app/views/projects/snippets
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-06 12:12:19 +0100
committerPhil Hughes <me@iamphill.com>2017-09-06 12:12:19 +0100
commit2aa8a75f69e338a94cca52a43058d156c0e3a1a1 (patch)
tree47b5f489b69e2d2e4e389fdd2586cca3781a8da7 /app/views/projects/snippets
parentde82bd8e447ae7b4b7e66f0368f5f43311848186 (diff)
parent1632ffa6ad16738994122f0e84f331d50f220879 (diff)
downloadgitlab-ce-2aa8a75f69e338a94cca52a43058d156c0e3a1a1.tar.gz
Merge branch 'master' into breadcrumbs-improvements
Diffstat (limited to 'app/views/projects/snippets')
-rw-r--r--app/views/projects/snippets/index.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/snippets/index.html.haml b/app/views/projects/snippets/index.html.haml
index ccc5fe80755..1803e7f7211 100644
--- a/app/views/projects/snippets/index.html.haml
+++ b/app/views/projects/snippets/index.html.haml
@@ -1,6 +1,6 @@
- page_title "Snippets"
-- if show_new_nav? && can?(current_user, :create_project_snippet, @project)
+- 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"
@@ -9,7 +9,7 @@
- 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{ class: ("visible-xs" if show_new_nav?) }
+ .nav-controls.visible-xs
- if can?(current_user, :create_project_snippet, @project)
= link_to "New snippet", new_project_snippet_path(@project), class: "btn btn-new", title: "New snippet"