LIL-596. Fix non paid schedule template

remotes/origin/hotfix/LIL-596
Ivlev Denis 8 years ago
parent 5bf3c94ac0
commit 6760feba06
  1. 14
      apps/school/templates/blocks/schedule.html

@ -8,21 +8,25 @@
{% for school_schedule in school_schedules %}
{% with current_live_lesson=school_schedule.current_live_lesson %}
<div class="timing__item{% if school_schedule.weekday > 5 %} timing__item_bg{% endif %} js-timing-item js-timing-toggle">
<div class="timing__cell">
<div class="timing__cell timing__cell--info">
<div class="timing__info">
<div class="timing__day{% if school_schedule.is_online %} active{% endif %}">
{{ school_schedule }}
</div>
{% comment %}
{% if current_live_lesson %}
<!--<div class="timing__date">{{ current_live_lesson.date }}</div>-->
<div class="timing__date">{{ current_live_lesson.date }}</div>
{% endif %}
{% endcomment %}
</div>
<div class="timing__buy">
<div class="timing__time">{{ school_schedule.start_at }} (МСК)</div>
<!--{% include './pay_btn.html' %}-->
{% comment %}
{% include './pay_btn.html' %}
{% endcomment %}
</div>
</div>
<div class="timing__cell">
<div class="timing__cell timing__cell--preview">
<div class="timing__preview">
{% thumbnail current_live_lesson.cover.image "70x70" crop="center" as im %}
<img class="timing__pic" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"/>
@ -31,7 +35,7 @@
{% endthumbnail %}
</div>
</div>
<div class="timing__cell">
<div class="timing__cell timing__cell--content">
<div class="timing__title">{{ school_schedule.title }}
{% if current_live_lesson and current_live_lesson.title %}
, <span class="bold">{{ current_live_lesson.title }}</span>

Loading…
Cancel
Save