From ea9558957cd1d39e823ca51b2a05f6cac6b62eac Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 28 May 2018 23:17:12 +0300 Subject: [PATCH 1/4] LIL-500 course content removed --- apps/course/templates/course/course.html | 63 +----------------------- 1 file changed, 2 insertions(+), 61 deletions(-) diff --git a/apps/course/templates/course/course.html b/apps/course/templates/course/course.html index 42d6198c..615cb945 100644 --- a/apps/course/templates/course/course.html +++ b/apps/course/templates/course/course.html @@ -176,7 +176,7 @@ {% if course.cover %} {% else %} - + {% endif %} {% if course.is_deferred_start %}
@@ -223,66 +223,7 @@ {% endwith %} {% endfor %} -{% if user.is_authenticated and course.lessons.exists %} -
-
-
-
Содержание курса
-
- {% for lesson in course.lessons.all %} - {% if course.author == request.user and request.user.role >= request.user.AUTHOR_ROLE %} - - {% elif request.user.role == request.user.ADMIN_ROLE %} - - {% else %} - - {% endif %} - {% endfor %} -
- {% comment %}
- -
{% endcomment %} -
-
-
-{% comment %}
-
-
Материалы, которые понадобятся
-
- {% for material in course.materials.all %} -
- {% if material.cover %} -
- -
- {% else %} -
- -
- {% endif %} -
-
{{ material.title }}
-
{{ material.short_description }}
-
-
- {% endfor %} -
-
-
{% endcomment %} -{% endif %} + {% if False %}
From 0355cebbe82bef8232c15119bb3b1c783feb8068 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 28 May 2018 23:57:30 +0300 Subject: [PATCH 2/4] Usability improvements --- apps/school/templates/school/livelesson_detail.html | 4 ++-- project/templates/lilcity/edit_index.html | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/school/templates/school/livelesson_detail.html b/apps/school/templates/school/livelesson_detail.html index 435651c8..92ca42e1 100644 --- a/apps/school/templates/school/livelesson_detail.html +++ b/apps/school/templates/school/livelesson_detail.html @@ -13,13 +13,13 @@ - Если видео не загрузилось обновите страницу + Если видео не загрузилось обновите страницу {% else %} {% if livelesson.cover %} {% else %} - + {% endif %} {% endif %} diff --git a/project/templates/lilcity/edit_index.html b/project/templates/lilcity/edit_index.html index 23bb204a..f6029dbb 100644 --- a/project/templates/lilcity/edit_index.html +++ b/project/templates/lilcity/edit_index.html @@ -53,7 +53,11 @@ - + {% if live == 'true' %} + + {% else %} + + {% endif %}
{% include 'templates/blocks/user_menu.html' %}
From f1ca8a0cfacf145fe830a271de9a69f30d471394 Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 28 May 2018 23:58:31 +0300 Subject: [PATCH 3/4] LIL-502 Textarea overflow fix --- project/templates/lilcity/index.html | 2 +- web/src/components/CourseRedactor.vue | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/project/templates/lilcity/index.html b/project/templates/lilcity/index.html index 3e5e5a94..ba11ed8e 100644 --- a/project/templates/lilcity/index.html +++ b/project/templates/lilcity/index.html @@ -30,7 +30,7 @@ {% comment %} {% endcomment %} - +