diff --git a/erpnext/www/lms/content.html b/erpnext/www/lms/content.html index a908d85da3..68fb9f32fe 100644 --- a/erpnext/www/lms/content.html +++ b/erpnext/www/lms/content.html @@ -90,7 +90,7 @@ {% endif %} -
+
{{ content.content }}
{% endmacro %} diff --git a/erpnext/www/lms/course.html b/erpnext/www/lms/course.html index 30b594d903..ee3b9758cb 100644 --- a/erpnext/www/lms/course.html +++ b/erpnext/www/lms/course.html @@ -35,16 +35,16 @@ {% macro card(topic, index, length) %}
- {% if frappe.session.user == 'Guest' %} -
+ {% if has_access %} + {% else %} - +
{% endif %} {% if topic.hero_image %}
{% else %}
-
{{ topic.topic_name }}
+
{% endif %}
- {% if frappe.session.user == 'Guest' %} -
- {% else %} + {% if has_access %} + {% else %} +
{% endif %}
@@ -81,7 +81,7 @@ {% block content %}
- {{ hero(course.course_name, course.course_intro) }} + {{ hero(course.course_name, course.course_intro, has_access) }}
{% for topic in topics %} diff --git a/erpnext/www/lms/program.html b/erpnext/www/lms/program.html index 65c883fb4c..d364e5e1d9 100644 --- a/erpnext/www/lms/program.html +++ b/erpnext/www/lms/program.html @@ -40,7 +40,7 @@
{% else %}
-
{{ course.course_name }}
+
{% endif %}
@@ -54,7 +54,7 @@ {% block content %}
- {{ hero(program.program_name, program.description) }} + {{ hero(program.program_name, program.description, has_access) }}
{% for course in program.courses %}