Баги страниц

remotes/origin/feature/open-school
gzbender 6 years ago
parent ca55f8af19
commit 4d12008a9e
  1. 5
      apps/school/templates/blocks/schedule_item.html
  2. 4
      web/src/sass/_common.sass

@ -6,9 +6,6 @@
<div class="timing__info"> <div class="timing__info">
<div class="timing__day{% if school_schedule.is_online %} active{% endif %}"> <div class="timing__day{% if school_schedule.is_online %} active{% endif %}">
{{ school_schedule }} {{ school_schedule }}
{% 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-trial-lesson="1" data-video-url="{{ school_schedule.trial_lesson|safe }}">Пробный урок</a>
{% endif %}
</div> </div>
{% if is_purchased and live_lesson %} {% if is_purchased and live_lesson %}
<div class="timing__date">{% if request.user_agent.is_mobile %}{{ live_lesson.date|date:"j b" }}{% else %}{{ live_lesson.date|date:"j E" }}{% endif %}</div> <div class="timing__date">{% if request.user_agent.is_mobile %}{{ live_lesson.date|date:"j b" }}{% else %}{{ live_lesson.date|date:"j E" }}{% endif %}</div>
@ -26,7 +23,7 @@
{% endif %} {% endif %}
{% endcomment %} {% endcomment %}
{% endif %} {% endif %}
{% if not is_purchased and not request.user_agent.is_mobile and school_schedule.trial_lesson %} {% if not is_purchased and school_schedule.trial_lesson %}
<a class="timing__trial-lesson js-video-modal" href="#" data-trial-lesson="1" data-video-url="{{ school_schedule.trial_lesson|safe }}">Пробный урок</a> <a class="timing__trial-lesson js-video-modal" href="#" data-trial-lesson="1" data-video-url="{{ school_schedule.trial_lesson|safe }}">Пробный урок</a>
{% endif %} {% endif %}
</div> </div>

@ -4362,9 +4362,7 @@ a.grey-link
display: inline-block display: inline-block
margin-top: 10px margin-top: 10px
+m +m
position: absolute; margin-top: 0
width: 120px;
margin-top: 6px;
&__time &__time
margin: 15px 0 margin: 15px 0
opacity: .5 opacity: .5

Loading…
Cancel
Save