From 98fcf7a06583d1ac8ec50b67fb1c0889b3b6d6a7 Mon Sep 17 00:00:00 2001 From: Radek Czajka <radekczajka@nowoczesnapolska.org.pl> Date: Mon, 3 Feb 2014 12:43:37 +0100 Subject: [PATCH] A fix, and a video. --- curriculum/models.py | 4 ++-- edumed/templates/home.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/curriculum/models.py b/curriculum/models.py index b4d8ac4..9da530d 100644 --- a/curriculum/models.py +++ b/curriculum/models.py @@ -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) diff --git a/edumed/templates/home.html b/edumed/templates/home.html index ce81ed9..d96e710 100755 --- a/edumed/templates/home.html +++ b/edumed/templates/home.html @@ -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&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"> -- 2.20.1