|
|
|
|
@ -8,9 +8,9 @@ |
|
|
|
|
> |
|
|
|
|
<a class="courses__preview" href="{% url 'course' course.id %}?next={{ request.get_full_path }}"> |
|
|
|
|
{% if course.cover %} |
|
|
|
|
<img class="courses__pic" src="{{ course.cover.image.url }}"/> |
|
|
|
|
<img width="300px" height="170px" class="courses__pic" src="{{ course.cover.image.url }}"/> |
|
|
|
|
{% else %} |
|
|
|
|
<img class="courses__pic" src="{% static 'img/no_cover.png' %}"/> |
|
|
|
|
<img width="300px" height="170px" class="courses__pic" src="{% static 'img/no_cover.png' %}"/> |
|
|
|
|
{% endif %} |
|
|
|
|
<div class="courses__view">Подробнее</div> |
|
|
|
|
{% if course.is_featured %} |
|
|
|
|
|