gitlab-org--gitlab-foss/app/views/snippets/new.html.haml
Sean McGivern f799585c41 Keep snippet visibility on error
When a snippet is submitted, but there's an error, we didn't keep the
visibility level. As the default is private, this means that submitting
a public snippet that failed would then fall back to being a private
snippet.
2017-02-02 10:23:50 +00:00

5 lines
122 B
Text

- page_title "New Snippet"
%h3.page-title
New Snippet
%hr
= render "shared/snippets/form", url: snippets_path(@snippet)