|
|
|
@ -166,25 +166,25 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="course__actions"> |
|
|
|
<div class="course__actions"> |
|
|
|
<a href="{{ course.url }}" class="course__action btn btn_lg{% if not only_lessons %} btn_stroke{% else %} btn_gray{% endif %}">Описание курса</a> |
|
|
|
<a href="{{ course.url }}" class="course__action btn btn_lg{% if not only_lessons %} btn_stroke-green{% else %} btn_gray{% endif %}">Описание курса</a> |
|
|
|
{% if request.user.is_authenticated %} |
|
|
|
{% if request.user.is_authenticated %} |
|
|
|
{% if course.author == request.user and request.user.role >= request.user.AUTHOR_ROLE %} |
|
|
|
{% if course.author == request.user and request.user.role >= request.user.AUTHOR_ROLE %} |
|
|
|
<a |
|
|
|
<a |
|
|
|
href="{% url 'course-only-lessons' course.id %}" |
|
|
|
href="{% url 'course-only-lessons' course.id %}" |
|
|
|
class="course__action btn btn_lg{% if only_lessons %} btn_stroke{% else %} btn_gray{% endif %}" |
|
|
|
class="course__action btn btn_lg{% if only_lessons %} btn_stroke-green{% else %} btn_gray{% endif %}" |
|
|
|
{% if not user.is_authenticated %}data-popup=".js-popup-auth"{% endif %} |
|
|
|
{% if not user.is_authenticated %}data-popup=".js-popup-auth"{% endif %} |
|
|
|
>УРОКИ |
|
|
|
>УРОКИ |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{% elif request.user.role == request.user.ADMIN_ROLE %} |
|
|
|
{% elif request.user.role == request.user.ADMIN_ROLE %} |
|
|
|
<a |
|
|
|
<a |
|
|
|
href="{% url 'course-only-lessons' course.id %}" |
|
|
|
href="{% url 'course-only-lessons' course.id %}" |
|
|
|
class="course__action btn btn_lg{% if only_lessons %} btn_stroke{% else %} btn_gray{% endif %}" |
|
|
|
class="course__action btn btn_lg{% if only_lessons %} btn_stroke-green{% else %} btn_gray{% endif %}" |
|
|
|
{% if not user.is_authenticated %}data-popup=".js-popup-auth"{% endif %} |
|
|
|
{% if not user.is_authenticated %}data-popup=".js-popup-auth"{% endif %} |
|
|
|
>УРОКИ |
|
|
|
>УРОКИ |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<a |
|
|
|
<a |
|
|
|
class="course__action btn btn_lg{% if only_lessons %} btn_stroke{% else %} btn_gray{% endif %}" |
|
|
|
class="course__action btn btn_lg{% if only_lessons %} btn_stroke-green{% else %} btn_gray{% endif %}" |
|
|
|
{% if paid or not course.price %} |
|
|
|
{% if paid or not course.price %} |
|
|
|
href="{% url 'course-only-lessons' course.id %}" |
|
|
|
href="{% url 'course-only-lessons' course.id %}" |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
@ -203,7 +203,7 @@ |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<a |
|
|
|
<a |
|
|
|
class="course__action btn btn_lg{% if only_lessons %} btn_stroke{% else %} btn_gray{% endif %}" |
|
|
|
class="course__action btn btn_lg{% if only_lessons %} btn_stroke-green{% else %} btn_gray{% endif %}" |
|
|
|
data-popup=".js-popup-auth">УРОКИ |
|
|
|
data-popup=".js-popup-auth">УРОКИ |
|
|
|
<svg class="icon icon-lock"> |
|
|
|
<svg class="icon icon-lock"> |
|
|
|
<use xlink:href="{% static 'img/sprite.svg' %}#icon-lock"></use> |
|
|
|
<use xlink:href="{% static 'img/sprite.svg' %}#icon-lock"></use> |
|
|
|
|