summaryrefslogtreecommitdiff
path: root/app/views/projects/snippets/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/snippets/index.html.haml')
-rw-r--r--app/views/projects/snippets/index.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/snippets/index.html.haml b/app/views/projects/snippets/index.html.haml
index f6d8f5e8c4f..ccc5fe80755 100644
--- a/app/views/projects/snippets/index.html.haml
+++ b/app/views/projects/snippets/index.html.haml
@@ -11,6 +11,6 @@
.nav-controls{ class: ("visible-xs" if show_new_nav?) }
- if can?(current_user, :create_project_snippet, @project)
- = link_to "New snippet", new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new", title: "New snippet"
+ = link_to "New snippet", new_project_snippet_path(@project), class: "btn btn-new", title: "New snippet"
= render 'snippets/snippets'