|
|
|
|
@ -33,7 +33,7 @@ |
|
|
|
|
<img class="video__pic" src="{{ lesson.cover.image.url }}"/> |
|
|
|
|
{% else %} |
|
|
|
|
<img class="video__pic" src="{% static 'img/no_cover.png' %}"/> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endif %} |
|
|
|
|
<svg class="icon icon-play"> |
|
|
|
|
<use xlink:href="{% static 'img/sprite.svg' %}#icon-play"></use> |
|
|
|
|
</svg> |
|
|
|
|
@ -97,10 +97,10 @@ |
|
|
|
|
<div class="section__center center center_sm"> |
|
|
|
|
<div class="title">Задавайте вопросы:</div> |
|
|
|
|
<div class="questions"> |
|
|
|
|
{% if user.is_authenticated %} |
|
|
|
|
{% if request.user.is_authenticated %} |
|
|
|
|
<form class="questions__form" method="post" action="{% url 'lessoncomment' lesson_id=lesson.id %}"> |
|
|
|
|
<div class="questions__ava ava"> |
|
|
|
|
<img class="ava__pic" src="{% static 'img/user.jpg' %}"> |
|
|
|
|
<img class="ava__pic" src="{{ request.user.photo.url }}"> |
|
|
|
|
</div> |
|
|
|
|
<div class="questions__wrap"> |
|
|
|
|
<div class="questions__field"> |
|
|
|
|
|