Commit 68bb459b authored by Mike Greiling's avatar Mike Greiling

move project new snippet button into snippet scope navigation header

parent 54a1193d
- page_title "Snippets"
- if current_user
.top-area
.nav-links.snippet-scope-menu
%li{ class: ("active" unless params[:scope]) }
= link_to namespace_project_snippets_path(@project.namespace, @project) do
......@@ -27,12 +28,15 @@
%span.badge
= @project.snippets.are_public.count
.sub-header-block
.nav-controls.hidden-xs
- if can?(current_user, :create_project_snippet, @project)
= link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new btn-wide-on-sm pull-right", title: "New snippet" do
= link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new", title: "New snippet" do
New snippet
.oneline
Share code pastes with others out of git repository
- if can?(current_user, :create_project_snippet, @project)
.visible-xs
 
= link_to new_namespace_project_snippet_path(@project.namespace, @project), class: "btn btn-new btn-block", title: "New snippet" do
New snippet
= render 'snippets/snippets'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment