|
|
|
|
@ -25,14 +25,18 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="go__title">Вернуться</div> |
|
|
|
|
</a> |
|
|
|
|
<button |
|
|
|
|
class="go__btn btn btn_md" |
|
|
|
|
{% if not paid and course.price %} |
|
|
|
|
<a |
|
|
|
|
class="go__btn btn{% if pending %} btn_gray{% endif %} btn_md" |
|
|
|
|
{% if user.is_authenticated %} |
|
|
|
|
data-popup=".js-popup-buy" |
|
|
|
|
{% if not pending %} |
|
|
|
|
href="{% url 'course-checkout' course.id %}" |
|
|
|
|
{% endif %} |
|
|
|
|
{% else %} |
|
|
|
|
data-popup=".js-popup-auth" |
|
|
|
|
{% endif %} |
|
|
|
|
>КУПИТЬ КУРС</button> |
|
|
|
|
>{% if pending %}ОЖИДАЕТСЯ ПОДТВЕРЖДЕНИЕ ОПЛАТЫ{% else %}КУПИТЬ КУРС{% endif %}</a> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
class="course" |
|
|
|
|
@ -130,15 +134,26 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="course__actions"> |
|
|
|
|
<a href="{% url 'course' course.id %}" class="course__action btn btn_lg btn_gray">Описание курса</a> |
|
|
|
|
<a href="{% url 'course-only-lessons' course.id %}" |
|
|
|
|
class="course__action btn btn_lg btn_stroke" |
|
|
|
|
{% if not user.is_authenticated %}data-popup=".js-popup-auth"{% endif %} |
|
|
|
|
>УРОКИ |
|
|
|
|
{% comment %} <svg class="icon icon-lock"> |
|
|
|
|
<use xlink:href="{% static 'img/sprite.svg' %}#icon-lock"></use> |
|
|
|
|
</svg> {% endcomment %} |
|
|
|
|
</a> |
|
|
|
|
<a href="{% url 'course' course.id %}" class="course__action btn btn_lg btn_stroke">Описание курса</a> |
|
|
|
|
{% if request.user.role == request.user.AUTHOR_ROLE or request.user.role == request.user.ADMIN_ROLE %} |
|
|
|
|
<a |
|
|
|
|
href="{% url 'course-only-lessons' course.id %}" |
|
|
|
|
class="course__action btn btn_lg btn_gray" |
|
|
|
|
{% if not user.is_authenticated %}data-popup=".js-popup-auth"{% endif %} |
|
|
|
|
>УРОКИ |
|
|
|
|
</a> |
|
|
|
|
{% else %} |
|
|
|
|
<a |
|
|
|
|
href="{% if paid %}{% url 'course-only-lessons' course.id %}{% else %}#{% endif %}" |
|
|
|
|
class="course__action btn btn_lg btn_gray" |
|
|
|
|
>УРОКИ |
|
|
|
|
{% if not paid %} |
|
|
|
|
<svg class="icon icon-lock"> |
|
|
|
|
<use xlink:href="{% static 'img/sprite.svg' %}#icon-lock"></use> |
|
|
|
|
</svg> |
|
|
|
|
{% endif %} |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
@ -270,4 +285,4 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
{% endblock content %} |
|
|
|
|
{% endblock content %} |
|
|
|
|
|