From c750c62993c355aec3b653d80c3de9170c15ea4e Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Thu, 16 Sep 2021 13:26:11 +0530 Subject: [PATCH] fix: style and message --- community/hooks.py | 6 +++--- community/public/css/style.css | 5 +++++ community/www/batch/learn.html | 8 ++++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/community/hooks.py b/community/hooks.py index 8026dd8f..e994461d 100644 --- a/community/hooks.py +++ b/community/hooks.py @@ -167,9 +167,9 @@ jinja = { ## subclass of community.community.plugins.PageExtension # community_lesson_page_extension = None -community_lesson_page_extensions = [ - "community.plugins.LiveCodeExtension" -] +#community_lesson_page_extensions = [ +# "community.plugins.LiveCodeExtension" +#] ## Markdown Macros for Lessons community_markdown_macro_renderers = { diff --git a/community/public/css/style.css b/community/public/css/style.css index 7c19512c..64d7b951 100644 --- a/community/public/css/style.css +++ b/community/public/css/style.css @@ -1354,3 +1354,8 @@ pre { width: 1.5rem; } } + +.thread-card { + flex-direction: column; + padding: 1rem; +} diff --git a/community/www/batch/learn.html b/community/www/batch/learn.html index 485f34c9..c535dfe5 100644 --- a/community/www/batch/learn.html +++ b/community/www/batch/learn.html @@ -48,8 +48,10 @@
{{ lesson.render_html() }}
{% else %}
- This lesson is not available for Preview. Please join the course to access this lesson. Checkout Course Details. +
+ This lesson is not available for preview. Please join the course to access this lesson. + Start Learning +
{% endif %} @@ -105,6 +107,8 @@ {% set doctype, docname = "Lesson", lesson.name %} {% set title = "Questions" %} {% set cta_title = "New Question" %} +{% set button_name = "Start Learning" %} +{% set redirect_to = "/courses/" + course.name %} {% include "frappe/templates/discussions/discussions_section.html" %} {% endmacro %}