Merge branch 'main' of https://github.com/frappe/community into redesign

This commit is contained in:
pateljannat
2021-07-09 09:50:38 +05:30
17 changed files with 46 additions and 736 deletions

View File

@@ -93,6 +93,11 @@
{%- block script %}
{{ super() }}
<script type="text/javascript">
var page_context = {{ page_context | tojson }};
</script>
{% for ext in page_extensions %}
{{ ext.render_footer() }}
{% endfor %}

View File

@@ -35,6 +35,12 @@ def get_context(context):
context.page_extensions = get_page_extensions()
context.page_context = {
"course": context.course.name,
"batch": context.get("batch") and context.batch.name,
"lesson": context.lesson.name
}
def get_chapter_title(course_name, lesson_number):
if not lesson_number:
return