LIL-726 Нельзя просмотреть прошедшие уроки

remotes/origin/editis_13-01-19
gzbender 7 years ago
parent faa64d2f03
commit e1fe15cc96
  1. 4
      apps/school/templates/blocks/schedule_item.html
  2. 2
      apps/school/templates/summer/schedule_purchased.html

@ -1,5 +1,7 @@
{% load static %} {% load thumbnail %}
<div class="timing__item{% if school_schedule.weekday > 5 %} timing__item_bg{% endif %} js-timing-item js-timing-toggle {% if print %}open{% endif %} {% if is_purchased and not school_schedule.weekday in school_schedules_purchased %} disable{% endif %}">
<div class="timing__item{% if school_schedule.weekday > 5 %} timing__item_bg{% endif %} js-timing-item js-timing-toggle
{% if print %}open{% endif %}
{% if is_purchased and not school_schedule.weekday in school_schedules_purchased and not is_previous %} disable{% endif %}">
<div class="timing__cell timing__cell--info">
<div class="timing__info">
<div class="timing__day{% if school_schedule.is_online %} active{% endif %}">

@ -30,7 +30,7 @@
<div class="subtitle2">Прошедшие уроки</div>
{% for live_lesson in prev_live_lessons %}
{% if live_lesson.school_schedule and live_lesson.title %}
{% include 'blocks/schedule_item.html' with school_schedule=live_lesson.school_schedule live_lesson=live_lesson %}
{% include 'blocks/schedule_item.html' with school_schedule=live_lesson.school_schedule live_lesson=live_lesson is_previous=True is_purchased=True %}
{% endif %}
{% endfor %}
{% endif %}

Loading…
Cancel
Save