diff options
Diffstat (limited to 'app/views/layouts/snippets.html.haml')
-rw-r--r-- | app/views/layouts/snippets.html.haml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/layouts/snippets.html.haml b/app/views/layouts/snippets.html.haml index 02ca3ee7a28..849075a0ba5 100644 --- a/app/views/layouts/snippets.html.haml +++ b/app/views/layouts/snippets.html.haml @@ -1,3 +1,9 @@ - header_title "Snippets", snippets_path +- content_for :page_specific_javascripts do + - if @snippet && current_user + -# haml-lint:disable InlineJavaScript + :javascript + window.uploads_path = "#{upload_path('personal_snippet', id: @snippet.id)}"; + = render template: "layouts/application" |