From 4026f04044cd3aa434f0fe1c272f3dc93e23677b Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Fri, 16 Mar 2018 13:22:24 +0300 Subject: [PATCH] Use empty tag for img thumbs --- apps/course/templates/course/_items.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/course/templates/course/_items.html b/apps/course/templates/course/_items.html index 2fd55a31..33312e53 100644 --- a/apps/course/templates/course/_items.html +++ b/apps/course/templates/course/_items.html @@ -8,13 +8,11 @@ {% if course.is_deferred_start %}data-future-course data-future-course-time={{ course.deferred_start_at.timestamp }}{% endif %} > - {% if course.cover %} {% thumbnail course.cover.image "300x170" crop="center" as im %} - {% endthumbnail %} - {% else %} + {% empty %} - {% endif %} + {% endthumbnail %}
Подробнее
{% if course.is_featured %}