From c10a8d7571bd69b19d601a572c58bb88a179937b Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Wed, 11 Apr 2018 16:56:31 +0300 Subject: [PATCH] Rename levelesson detail template --- apps/school/templates/school/lesson.html | 142 ------------------ .../templates/school/livelesson_detail.html | 47 ++++++ 2 files changed, 47 insertions(+), 142 deletions(-) delete mode 100644 apps/school/templates/school/lesson.html create mode 100644 apps/school/templates/school/livelesson_detail.html diff --git a/apps/school/templates/school/lesson.html b/apps/school/templates/school/lesson.html deleted file mode 100644 index 9150710d..00000000 --- a/apps/school/templates/school/lesson.html +++ /dev/null @@ -1,142 +0,0 @@ -{% extends "templates/lilcity/index.html" %} -{% load static %} -{% block title %}{{ lesson.title }} - {{ block.super }}{% endblock title %} - -{% block content %} -
-
- -
-
{{ lesson.title }}
-
{{ lesson.short_description }}
- {% comment %} - {% if lesson.cover %} - - {% else %} - - {% endif %} - - - - {% endcomment %} -
-
-
-{% for content in lesson.content.all %} - - {% with template="course/content/"|add:content.ctype|add:".html" %} - {% include template %} - {% endwith %} - -{% endfor %} -{% comment %}
-
-
Примеры техники
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
{% endcomment %} -
-
-
Задавайте вопросы:
-
- {% if request.user.is_authenticated %} -
-
- -
-
-
- -
- -
-
- {% else %} -
Только зарегистрированные пользователи могут оставлять комментарии.
- {% endif %} -
- {% include "./blocks/comments.html" with object=lesson %} -
-
-
-
-
-
- -
-
-{% endblock content %} diff --git a/apps/school/templates/school/livelesson_detail.html b/apps/school/templates/school/livelesson_detail.html new file mode 100644 index 00000000..cd0c2011 --- /dev/null +++ b/apps/school/templates/school/livelesson_detail.html @@ -0,0 +1,47 @@ +{% extends "templates/lilcity/index.html" %} +{% load static %} +{% block title %}{{ livelesson.title }} - {{ block.super }}{% endblock title %} + +{% block content %} +
+
+
+
{{ livelesson.title }}
+
{{ livelesson.short_description }}
+ + {% if livelesson.cover %} + + {% else %} + + {% endif %} + + + + +
+
+
+{% for content in livelesson.content.all %} + + {% with template="course/content/"|add:content.ctype|add:".html" %} + {% include template %} + {% endwith %} + +{% endfor %} +
+
+ +
+
+{% endblock content %}