Vue Comments: Comments ported to Vue + DnD fileupload
authorTobias Johansson <tobias@tobias-johansson.se>
Wed, 12 Dec 2018 10:45:46 +0000 (11:45 +0100)
committerTobias Johansson <tobias@tobias-johansson.se>
Wed, 12 Dec 2018 10:45:46 +0000 (11:45 +0100)
* Drag and drop files to comment editor to add a file attachment
* Using Vue to render comments

Since comments now has attachments we need to update the schemas
./manage.py maintenance replace_pillar_node_type_schemas

src/templates/svnman/layout.pug

index 85a553c..7ac1660 100644 (file)
@@ -12,6 +12,8 @@ html(lang="en")
                script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery-3.1.0.min.js')}}")
                script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.bootstrap-3.3.7.min.js') }}")
                script(src="{{ url_for('static_pillar', filename='assets/js/tutti.min.js') }}")
+               script.
+                       pillar.utils.initCurrentUser({{ current_user | json | safe }});
                script(src="{{ url_for('static_svnman', filename='assets/js/generated/tutti.min.js') }}")
                script(src="{{ url_for('static_pillar', filename='assets/js/vendor/clipboard.min.js')}}")