From e53a524c46c53f97898af7c6b3aa17f6cb2200e8 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Mon, 29 Jan 2018 21:28:06 +0300 Subject: [PATCH] Add comments to course template --- apps/course/templates/course/course.html | 34 +++++++++++++++++------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/apps/course/templates/course/course.html b/apps/course/templates/course/course.html index 38872a00..fc847874 100644 --- a/apps/course/templates/course/course.html +++ b/apps/course/templates/course/course.html @@ -1,5 +1,6 @@ {% extends "templates/lilcity/index.html" %} {% load static %} +{% load mptt_tags %} {% block content %}
@@ -191,6 +192,7 @@
+
Задавайте вопросы:
@@ -199,17 +201,29 @@
-
-
-
-
-
Богиня Недалекая16 Сен, 16:52
-
А можно ли заниматься если у меня нет интернета и компьютера. Можно ли запустить видео на моей микроволновке?
+ {% recursetree course.comments.all %} + +
+ {% if node.author.photo %} +
+ {% else %} +
+ {% endif %} +
+
+
{{ node.author.get_full_name }}{{ node.created_at_humanize }}
+
{{ node.content }}
+
+
-
-
-
+ + {% if not node.is_leaf_node %} + {{ children }} + {% endif %} + {% endrecursetree %} + +