Показывать смотреть урок только для заполненных курсов

Показывать дату урока
remotes/origin/feature/effective_amount
nikita 8 years ago
parent 88c863b2d2
commit 0d0652463f
  1. 8
      apps/school/templates/blocks/_schedule_purchased_item.html
  2. 8
      apps/school/templates/summer/_schedule_purchased_item.html

@ -11,10 +11,12 @@
</div>
<div class="timing__buy">
<div class="timing__time">{{ school_schedule.start_at }} (МСК)</div>
{% if school_schedule.weekday in school_schedules_purchased and live_lesson and live_lesson.title %}
{% include './open_lesson.html' %}
{% if school_schedule.weekday in school_schedules_purchased %}
{% if live_lesson and live_lesson.title %}
{% include './open_lesson.html' %}
{% endif %}
{% else %}
{% include './day_pay_btn.html' %}
{% include './day_pay_btn.html' %}
{% endif %}
</div>
{% comment %}

@ -11,10 +11,12 @@
</div>
<div class="timing__buy">
<div class="timing__time">{{ school_schedule.start_at }} (МСК)</div>
{% if school_schedule.weekday in school_schedules_purchased and live_lesson and live_lesson.title %}
{% include './open_lesson.html' %}
{% if school_schedule.weekday in school_schedules_purchased %}
{% if live_lesson and live_lesson.title %}
{% include './open_lesson.html' %}
{% endif %}
{% else %}
{% include './day_pay_btn.html' %}
{% include './day_pay_btn.html' %}
{% endif %}
</div>
{% comment %}

Loading…
Cancel
Save