elif lesson.type == 'synthetic':
prefix = "%s/%s (synteza)/" % (
section_dir, lesson.slug)
+ elif lesson.type == 'project':
+ prefix = "%s/%s (projekt)/" % (
+ section_dir, lesson.slug)
else:
prefix = "%s/%s/" % (
section_dir, lesson.slug)
</section>
{% if object.package %}
- <section class="box-button"><a href="{{ object.package.url }}" class="dl-button">Pobierz całą lekcję</a></section>
+ <section class="box-button"><a href="{{ object.package.url }}" class="dl-button">Pobierz cały projekt</a></section>
{% endif %}
{% endblock %}
@register.inclusion_tag("catalogue/snippets/lesson_nav.html")
def lesson_nav(lesson):
- if lesson.type == 'course':
+ if lesson.type in ('course', 'project'):
root = lesson.section
siblings = Lesson.objects.filter(type='course', level=lesson.level, section=root)
mark_level = False