gitlab-org--gitlab-foss/app/views/snippets/edit.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
143 B
Text

- page_title "Edit", @snippet.title, "Snippets"
%h3.page-title
Edit Snippet
%hr
= render 'shared/snippets/form', url: snippet_path(@snippet)