44e1915d4f
It persist temporary personal snippets under user/:id namespaces temporarily while creating a upload record to track it. If an user gets removed while it's still a tmp upload, it also gets removed. If the tmp upload is sent, the upload gets moved to personal_snippets/:id as before. The upload record also gets updated to the new model type as well.
10 lines
342 B
Text
10 lines
342 B
Text
- header_title _("Snippets"), snippets_path
|
|
- snippets_upload_path = snippets_upload_path(@snippet, current_user)
|
|
|
|
- content_for :page_specific_javascripts do
|
|
- if snippets_upload_path
|
|
-# haml-lint:disable InlineJavaScript
|
|
:javascript
|
|
window.uploads_path = "#{snippets_upload_path}";
|
|
|
|
= render template: "layouts/application"
|