Показывать кнопку Смотреть Урок для заполненного урока

remotes/origin/feature/effective_amount
nikita 8 years ago
parent a1ca1b4772
commit c448520b0b
  1. 4
      apps/school/templates/blocks/_schedule_purchased_item.html
  2. 4
      apps/school/templates/summer/_schedule_purchased_item.html

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

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

Loading…
Cancel
Save