LIL-660 Не показывать «Пробный урок» для купивших

remotes/origin/hotfix/LIL-661
gzbender 7 years ago
parent 7fdf31c22d
commit cacf74d48c
  1. 4
      apps/school/templates/blocks/schedule_item.html

@ -4,7 +4,7 @@
<div class="timing__info">
<div class="timing__day{% if school_schedule.is_online %} active{% endif %}">
{{ school_schedule }}
{% if request.user_agent.is_mobile and school_schedule.trial_lesson %}
{% if not is_purchased and request.user_agent.is_mobile and school_schedule.trial_lesson %}
<a class="timing__trial-lesson js-video-modal" href="#" data-video-url="{{ school_schedule.trial_lesson }}">Пробный урок</a>
{% endif %}
</div>
@ -20,7 +20,7 @@
{% else %}
{% include './day_pay_btn.html' %}
{% endif %}
{% if not request.user_agent.is_mobile and school_schedule.trial_lesson %}
{% if not is_purchased and not request.user_agent.is_mobile and school_schedule.trial_lesson %}
<a class="timing__trial-lesson js-video-modal" href="#" data-video-url="{{ school_schedule.trial_lesson }}">Пробный урок</a>
{% endif %}
</div>

Loading…
Cancel
Save