fix links to local files in editor
[redakcja.git] / apps / wiki / templates / wiki / bootstrap.html
index d5baf1c..8428a60 100644 (file)
@@ -5,7 +5,7 @@
 <html>
     <head>
         {% if RAVEN_CONFIG %}
-            <script src="http://cdn.ravenjs.com/1.1.7/jquery,native/raven.min.js"></script>
+            <script src="https://cdn.ravenjs.com/1.1.7/jquery,native/raven.min.js"></script>
             <script>
                 Raven.config('{{RAVEN_CONFIG.SENTRY_URL}}', {{RAVEN_CONFIG.SETTINGS|default:'{}'}}).install();
                 {% if request.user.is_authenticated %}
                                 '2012/I/ZAJECIA_KOMPUTEROWE/t4',
                                 '2012/I/ZAJECIA_KOMPUTEROWE/t5'
                             ]},
+                            {key: 'subject.curriculum.new'},
                             {key: 'subject.competence', values: [
                                 'Anonimowość - Bezpieczeństwo w komunikacji i mediach',
                                 'Bezpieczeństwo komunikacji, pracy i transakcji - Bezpieczeństwo w komunikacji i mediach',
                 documentDiffUrl: function(id) { return '/editor/diff/' + id + '/'; },
                 documentRestoreUrl: function(id) { return '/editor/revert/' + id + '/'},
                 documentAttachmentUrl: function(attachmentName) {
-                    return '{{MEDIA_URL}}{{IMAGE_DIR}}{{slug}}/' + attachmentName;
+                    return '{{MEDIA_URL}}{{IMAGE_DIR}}{{gallery}}/' + attachmentName;
                 },
                 documentUrl: function(id, version) {
                     var url = '{% url 'wiki_editor' slug %}';