2018-06-13 06:30:40 +00:00
|
|
|
- header_title _("Snippets"), snippets_path
|
2015-05-01 08:39:11 +00:00
|
|
|
|
2017-05-03 08:48:01 +00:00
|
|
|
- content_for :page_specific_javascripts do
|
2017-05-03 15:26:49 +00:00
|
|
|
- if @snippet && current_user
|
2017-08-01 08:50:59 +00:00
|
|
|
-# haml-lint:disable InlineJavaScript
|
2017-05-03 08:48:01 +00:00
|
|
|
:javascript
|
2017-05-03 15:26:49 +00:00
|
|
|
window.uploads_path = "#{upload_path('personal_snippet', id: @snippet.id)}";
|
2017-05-03 08:48:01 +00:00
|
|
|
|
2015-05-01 08:39:11 +00:00
|
|
|
= render template: "layouts/application"
|