2015-09-25 12:07:36 +05:30
|
|
|
- header_title "Snippets", snippets_path
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
- 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-09-11 14:41:01 +05:30
|
|
|
= render template: "layouts/application"
|