{% extends "templates/lilcity/index.html" %} {% load static %} {% block title %}{{ lesson.title }} - {{ block.super }}{% endblock title %} {% block ogimage %}http://{{request.META.HTTP_HOST}}{% if lesson.course.cover %}{{ lesson.course.cover.image.url }}{% else %}{% static 'img/og_courses.jpg' %}{% endif %}{% endblock ogimage %} {% block content %}
{{ lesson.title }}
{{ lesson.short_description | safe | linebreaks }}
{% comment %} {% if lesson.cover %} {% else %} {% endif %} {% endcomment %}
{% for content in lesson.content.all %} {% with template="course/content/"|add:content.ctype|add:".html" %} {% include template %} {% endwith %} {% endfor %} {% comment %}
Примеры техники
{% endcomment %}
Задавайте вопросы:
{% if request.user.is_authenticated %}
{% else %}
Только зарегистрированные пользователи могут оставлять комментарии.
{% endif %}
{% include "templates/blocks/comments.html" with object=lesson %}
{% include 'templates/blocks/share.html' %}
{% endblock content %}