2015-09-08 09:49:20 -04:00
|
|
|
- header_title "Snippets", snippets_path
|
2015-05-01 04:39:11 -04:00
|
|
|
|
2017-05-03 04:48:01 -04:00
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
- if @snippet&.persisted? && current_user
|
|
|
|
:javascript
|
|
|
|
window.uploads_path = "#{upload_path('personal_snippet', @snippet)}";
|
|
|
|
window.preview_markdown_path = "#{preview_markdown_snippet_path(@snippet)}";
|
|
|
|
|
2015-05-01 04:39:11 -04:00
|
|
|
= render template: "layouts/application"
|