|
|
|
|
@ -142,7 +142,11 @@ |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
<a class="course__video video" href="#"> |
|
|
|
|
<img class="video__pic" src="{% static 'img/video-1.jpg' %}"> |
|
|
|
|
{% if course.cover %} |
|
|
|
|
<img class="video__pic" src="{{ course.cover.image.url }}"/> |
|
|
|
|
{% else %} |
|
|
|
|
<img class="video__pic" src="{% static 'img/no_cover.png' %}"/> |
|
|
|
|
{% endif %} |
|
|
|
|
{% if course.is_deferred_start %} |
|
|
|
|
<div class="video__soon"> |
|
|
|
|
<div class="video__title">Курс начнется:</div> |
|
|
|
|
@ -263,7 +267,10 @@ |
|
|
|
|
{% include "course/content/gallery.html" with results=True %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="course course_promo" style="background-image: url({% static 'img/video-1.jpg' %});"> |
|
|
|
|
<div |
|
|
|
|
class="course course_promo" |
|
|
|
|
style="background-image: url({% if course.cover %}{{ course.cover.image.url }}{% else %}{% static 'img/no_cover.png' %}{% endif %});" |
|
|
|
|
> |
|
|
|
|
<div class="course__center center center_sm"> |
|
|
|
|
<div class="course__head"> |
|
|
|
|
<div class="course__theme theme theme_green">ПЕРСОНАЖИ</div> |
|
|
|
|
@ -326,7 +333,7 @@ |
|
|
|
|
<use xlink:href="{% static 'img/sprite.svg' %}#icon-date"></use> |
|
|
|
|
</svg> |
|
|
|
|
</div> |
|
|
|
|
<div class="meta__title">15 ноября</div> |
|
|
|
|
<div class="meta__title">{{ course.created_at | date:"d F Yг." }}</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="meta__item"> |
|
|
|
|
<div class="meta__icon"> |
|
|
|
|
|