A fix, and a video.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Mon, 3 Feb 2014 11:43:37 +0000 (12:43 +0100)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Mon, 3 Feb 2014 11:43:37 +0000 (12:43 +0100)
curriculum/models.py
edumed/templates/home.html

index b4d8ac4..9da530d 100644 (file)
@@ -92,13 +92,13 @@ class Level(models.Model):
         from StringIO import StringIO
         import zipfile
         from django.core.files.base import ContentFile
-        from catalogue.templatetags.catalogue_tags import section_box
+        from catalogue.templatetags.catalogue_tags import level_box
         from catalogue.models import Lesson
 
         buff = StringIO()
         zipf = zipfile.ZipFile(buff, 'w', zipfile.ZIP_STORED)
 
-        lessons = section_box(self)['lessons']
+        lessons = level_box(self)['lessons']
         for i, lesson in enumerate(lessons['synthetic']):
             prefix = 'Skrocony kurs/%d %s/' % (i, lesson.slug)
             lesson.add_to_zip(zipf, student, prefix)
index ce81ed9..d96e710 100755 (executable)
@@ -30,7 +30,7 @@
 </ul>
 <p>Zobacz, <a href="{% url 'info' 'dobre-praktyki' %}">jak przeprowadzili je inni.</a></p>
 
-{# <iframe width="220" height="124" src="//www.youtube.com/embed/______?controls=2&amp;rel=0&amp;showinfo=0&amp;theme=light" frameborder="0" allowfullscreen></iframe> #}
+<iframe width="220" height="124" src="//www.youtube.com/embed/XJ2q_ZCPIA8?controls=2&amp;rel=0&amp;showinfo=0&amp;theme=light" frameborder="0" allowfullscreen></iframe>
 </section>
 
 <section id="main-chosen">