Fixed size for course cover on courses page

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent c451510407
commit 3378d38874
  1. 4
      apps/course/templates/course/_items.html

@ -8,9 +8,9 @@
> >
<a class="courses__preview" href="{% url 'course' course.id %}?next={{ request.get_full_path }}"> <a class="courses__preview" href="{% url 'course' course.id %}?next={{ request.get_full_path }}">
{% if course.cover %} {% 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 %} {% 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 %} {% endif %}
<div class="courses__view">Подробнее</div> <div class="courses__view">Подробнее</div>
{% if course.is_featured %} {% if course.is_featured %}

Loading…
Cancel
Save