|
|
|
@ -50,11 +50,11 @@ |
|
|
|
href="{% url 'courses' %}?category={{ course.category.id }}">{{ course.category | upper }}</a> |
|
|
|
href="{% url 'courses' %}?category={{ course.category.id }}">{{ course.category | upper }}</a> |
|
|
|
{% if not course.is_free %} |
|
|
|
{% if not course.is_free %} |
|
|
|
{% if course.buy_again_price %} |
|
|
|
{% if course.buy_again_price %} |
|
|
|
<div class="courses__old-price"><s>{{ course.price|floatformat:"-2" }}₽</s></div> |
|
|
|
<div class="courses__old-price mobile-hide"><s>{{ course.price|floatformat:"-2" }}₽</s></div> |
|
|
|
<div class="courses__price" style="color: red;">{{ course.buy_again_price|floatformat:"-2" }}₽</div> |
|
|
|
<div class="courses__price" style="color: red;">{{ course.buy_again_price|floatformat:"-2" }}₽</div> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
{% if course.old_price %} |
|
|
|
{% if course.old_price %} |
|
|
|
<div class="courses__old-price"><s>{{ course.old_price|floatformat:"-2" }}₽</s></div> |
|
|
|
<div class="courses__old-price mobile-hide"><s>{{ course.old_price|floatformat:"-2" }}₽</s></div> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
<div class="courses__price" |
|
|
|
<div class="courses__price" |
|
|
|
{% if course.old_price %}style="color: red;"{% endif %}>{{ course.price|floatformat:"-2" }}₽</div> |
|
|
|
{% if course.old_price %}style="color: red;"{% endif %}>{{ course.price|floatformat:"-2" }}₽</div> |
|
|
|
|