Показывать картинки и текст из расписания, а не из урока школы

remotes/origin/hotfix/LIL-661
nikita 7 years ago
parent 909d9ab0d0
commit 221c1c153f
  1. 8
      apps/school/templates/blocks/schedule_item.html

@ -32,13 +32,15 @@
<div style="display: flex; width: 100%;">
<div class="timing__cell timing__cell--preview">
<div class="timing__preview">
{% comment %}
{% thumbnail live_lesson.cover.image "70x70" crop="center" as im %}
<img class="timing__pic" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}" />
{% empty %}
{% endcomment %}
<img class="timing__pic"
src="{% if school_schedule.cover %}{{ school_schedule.cover.image_thumbnail.url }}{% else %}{% static 'img/no_cover.png' %}{% endif %}"
style="width: 70px; height: 70px;" />
{% endthumbnail %}
{% comment %}{% endthumbnail %}{% endcomment %}
</div>
</div>
<div class="timing__cell timing__cell--content" {% if print %}style="flex: 1 0 0;"{% endif %}>
@ -47,11 +49,13 @@
{% endif %}
</div>
<div class="timing__content">
{% comment %}
{% if live_lesson and live_lesson.short_description %}
{{ live_lesson.short_description }}
{% else %}
{% endcomment %}
{{ school_schedule.description }}
{% endif %}
{% comment %}{% endif %}{% endcomment %}
</div>
<div class="timing__more">
<div class="timing__head">Материалы</div>

Loading…
Cancel
Save