2018-06-13 02:30:40 -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
|
2017-05-03 11:26:49 -04:00
|
|
|
- if @snippet && current_user
|
2017-08-01 04:50:59 -04:00
|
|
|
-# haml-lint:disable InlineJavaScript
|
2017-05-03 04:48:01 -04:00
|
|
|
:javascript
|
2017-05-03 11:26:49 -04:00
|
|
|
window.uploads_path = "#{upload_path('personal_snippet', id: @snippet.id)}";
|
2017-05-03 04:48:01 -04:00
|
|
|
|
2015-05-01 04:39:11 -04:00
|
|
|
= render template: "layouts/application"
|