From 45d88bdc08aab1877c1ce31a1298b7912e9be5ee Mon Sep 17 00:00:00 2001 From: pateljannat Date: Fri, 2 Jul 2021 15:43:21 +0530 Subject: [PATCH] feat: course header wide --- community/lms/doctype/chapter/chapter.py | 4 + community/lms/widgets/ChapterTeaser.html | 56 ++- community/lms/widgets/CourseOutline.html | 15 +- community/public/css/style.css | 596 +++++++++++++---------- community/public/icons/down-arrow.svg | 3 + community/public/icons/play.svg | 3 + community/public/icons/rating.svg | 2 +- community/public/icons/side-arrow.svg | 3 + community/public/icons/tick.svg | 3 + community/public/images/Vector.png | Bin 206 -> 200 bytes community/templates/quiz.html | 9 +- community/www/batch/members.html | 7 +- community/www/courses/course.html | 189 ++++--- 13 files changed, 503 insertions(+), 387 deletions(-) create mode 100644 community/public/icons/down-arrow.svg create mode 100644 community/public/icons/play.svg create mode 100644 community/public/icons/side-arrow.svg create mode 100644 community/public/icons/tick.svg diff --git a/community/lms/doctype/chapter/chapter.py b/community/lms/doctype/chapter/chapter.py index b616de2c..a563c7e0 100644 --- a/community/lms/doctype/chapter/chapter.py +++ b/community/lms/doctype/chapter/chapter.py @@ -5,6 +5,7 @@ from __future__ import unicode_literals import frappe from frappe.model.document import Document +from ...utils import slugify class Chapter(Document): def get_lessons(self): @@ -13,3 +14,6 @@ class Chapter(Document): fields='name', order_by="index_") return [frappe.get_doc('Lesson', row['name']) for row in rows] + + def get_slugified_chapter_title(self): + return slugify(self.title) diff --git a/community/lms/widgets/ChapterTeaser.html b/community/lms/widgets/ChapterTeaser.html index 5a49f5b3..537c952c 100644 --- a/community/lms/widgets/ChapterTeaser.html +++ b/community/lms/widgets/ChapterTeaser.html @@ -1,28 +1,42 @@ -
-
-
{{index}}. {{ chapter.title }}
-
- {{ chapter.description or "" }} +
+ +