LIL-525 Необходимо показывать список уроков для неавтоизованных пользователей

remotes/origin/feature/effective_amount
gzbender 8 years ago
parent 1cf32caabf
commit 65e3c24eb6
  1. 6
      apps/course/templates/course/course.html

@ -1,4 +1,4 @@
{% extends "templates/lilcity/index.html" %}
course__actions{% extends "templates/lilcity/index.html" %}
{% load static %}
{% load data_liked from data_liked %}
{% load rupluralize from plural %}
@ -155,13 +155,14 @@
{% if not user.is_authenticated %}data-popup=".js-popup-auth"{% endif %}
>УРОКИ
</a>
{% endif %}
{% else %}
<a
class="course__action btn btn_lg{% if only_lessons %} btn_stroke{% else %} btn_gray{% endif %}"
{% if paid %}
href="{% url 'course-only-lessons' course.id %}"
{% else %}
data-popup=".js-popup-course-lock"
data-popup="{% if not user.is_authenticated %}.js-popup-auth{% else %}.js-popup-course-lock{% endif %}"
{% endif %}
>УРОКИ
{% if not paid %}
@ -171,7 +172,6 @@
{% endif %}
</a>
{% endif %}
{% endif %}
</div>
<a class="course__video video" href="#">
{% if course.cover %}

Loading…
Cancel
Save