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)
</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&rel=0&showinfo=0&theme=light" frameborder="0" allowfullscreen></iframe> #}
+<iframe width="220" height="124" src="//www.youtube.com/embed/XJ2q_ZCPIA8?controls=2&rel=0&showinfo=0&theme=light" frameborder="0" allowfullscreen></iframe>
</section>
<section id="main-chosen">