From b238f86716cbea48854ae112b2edbf1da45914ae Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Thu, 1 Feb 2018 12:41:42 +0300 Subject: [PATCH] Fix comment block for not authenticated --- apps/course/templates/course/course.html | 6 +++--- apps/course/templates/course/lesson.html | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/course/templates/course/course.html b/apps/course/templates/course/course.html index 783dec81..6ea6e48b 100644 --- a/apps/course/templates/course/course.html +++ b/apps/course/templates/course/course.html @@ -380,13 +380,13 @@
Задавайте вопросы:
+ {% if user.is_authenticated %}
- {% if user.is_authenticated %}
В ответ на этот комментарий. Отменить @@ -395,11 +395,11 @@
+
+
{% else %}
Только зарегистрированные пользователи могут оставлять комментарии.
{% endif %} -
-
{% include "./blocks/comments.html" with object=course %}
diff --git a/apps/course/templates/course/lesson.html b/apps/course/templates/course/lesson.html index 27148452..19b11558 100644 --- a/apps/course/templates/course/lesson.html +++ b/apps/course/templates/course/lesson.html @@ -82,21 +82,21 @@
Задавайте вопросы:
+ {% if user.is_authenticated %}
- {% if user.is_authenticated %}
- {% else %} -
Только зарегистрированные пользователи могут оставлять комментарии.
- {% endif %}
+ {% else %} +
Только зарегистрированные пользователи могут оставлять комментарии.
+ {% endif %}
{% include "./blocks/comments.html" with object=lesson %}