|
|
|
|
@ -176,7 +176,7 @@ |
|
|
|
|
{% if course.cover %} |
|
|
|
|
<img class="video__pic" src="{{ course.cover.image.url }}"/> |
|
|
|
|
{% else %} |
|
|
|
|
<img class="video__pic" src="{% static 'img/no_cover.png' %}"/> |
|
|
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
{% if course.is_deferred_start %} |
|
|
|
|
<div class="video__soon"> |
|
|
|
|
@ -370,17 +370,17 @@ |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
{% if course.author != request.user and not paid and course.price %} |
|
|
|
|
<a |
|
|
|
|
class="go__btn btn{% if pending %} btn_gray{% endif %} btn_md" |
|
|
|
|
{% if user.is_authenticated %} |
|
|
|
|
{% if not pending %} |
|
|
|
|
data-course-buy |
|
|
|
|
href="{% url 'course-checkout' course.id %}" |
|
|
|
|
{% endif %} |
|
|
|
|
{% else %} |
|
|
|
|
data-popup=".js-popup-auth" |
|
|
|
|
{% endif %} |
|
|
|
|
>{% if pending %}ОЖИДАЕТСЯ ПОДТВЕРЖДЕНИЕ ОПЛАТЫ{% else %}КУПИТЬ КУРС{% endif %}</a> |
|
|
|
|
<a |
|
|
|
|
class="go__btn btn{% if pending %} btn_gray{% endif %} btn_md" |
|
|
|
|
{% if user.is_authenticated %} |
|
|
|
|
{% if not pending %} |
|
|
|
|
data-course-buy |
|
|
|
|
href="{% url 'course-checkout' course.id %}" |
|
|
|
|
{% endif %} |
|
|
|
|
{% else %} |
|
|
|
|
data-popup=".js-popup-auth" |
|
|
|
|
{% endif %} |
|
|
|
|
>{% if pending %}ОЖИДАЕТСЯ ПОДТВЕРЖДЕНИЕ ОПЛАТЫ{% else %}КУПИТЬ КУРС{% endif %}</a> |
|
|
|
|
{% endif %} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|