fix: style and message
This commit is contained in:
@@ -167,9 +167,9 @@ jinja = {
|
|||||||
## subclass of community.community.plugins.PageExtension
|
## subclass of community.community.plugins.PageExtension
|
||||||
# community_lesson_page_extension = None
|
# community_lesson_page_extension = None
|
||||||
|
|
||||||
community_lesson_page_extensions = [
|
#community_lesson_page_extensions = [
|
||||||
"community.plugins.LiveCodeExtension"
|
# "community.plugins.LiveCodeExtension"
|
||||||
]
|
#]
|
||||||
|
|
||||||
## Markdown Macros for Lessons
|
## Markdown Macros for Lessons
|
||||||
community_markdown_macro_renderers = {
|
community_markdown_macro_renderers = {
|
||||||
|
|||||||
@@ -1354,3 +1354,8 @@ pre {
|
|||||||
width: 1.5rem;
|
width: 1.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.thread-card {
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
|||||||
@@ -48,8 +48,10 @@
|
|||||||
<div class="common-card-style lesson-content-card markdown-source">{{ lesson.render_html() }}</div>
|
<div class="common-card-style lesson-content-card markdown-source">{{ lesson.render_html() }}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="common-card-style lesson-content-card">
|
<div class="common-card-style lesson-content-card">
|
||||||
<span>This lesson is not available for Preview. Please join the course to access this lesson. <a
|
<div class="w-25 text-center" style="margin: 0 auto;">
|
||||||
href="/courses/{{ course.name }}">Checkout Course Details.</a></span>
|
<small>This lesson is not available for preview. Please join the course to access this lesson.</small>
|
||||||
|
<a class="button is-primary ml-auto mr-auto mt-3" href="/courses/{{ course.name }}"> Start Learning </a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
@@ -105,6 +107,8 @@
|
|||||||
{% set doctype, docname = "Lesson", lesson.name %}
|
{% set doctype, docname = "Lesson", lesson.name %}
|
||||||
{% set title = "Questions" %}
|
{% set title = "Questions" %}
|
||||||
{% set cta_title = "New Question" %}
|
{% set cta_title = "New Question" %}
|
||||||
|
{% set button_name = "Start Learning" %}
|
||||||
|
{% set redirect_to = "/courses/" + course.name %}
|
||||||
|
|
||||||
{% include "frappe/templates/discussions/discussions_section.html" %}
|
{% include "frappe/templates/discussions/discussions_section.html" %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|||||||
Reference in New Issue
Block a user