gitlab-org--gitlab-foss/app/views/explore/snippets/index.html.haml
Connor Shea 443fdff1b4
Update New Snippet buttons.
No longer shows New Snippet button to users who aren't able to create a new snippet in the given context.

Also removes the plus icon from the New Snippet buttons, as they're no longer used in other creation buttons.

Fixes #14595.
2016-07-08 13:21:20 -06:00

18 lines
423 B
Text

- page_title "Snippets"
- header_title "Snippets", snippets_path
- if current_user
= render 'dashboard/snippets_head'
- else
= render 'explore/head'
.row-content-block
- if current_user
.pull-right
= link_to new_snippet_path, class: "btn btn-new", title: "New Snippet" do
New Snippet
.oneline
Public snippets created by you and other users are listed here
= render 'snippets/snippets'