From 24bd07d000d1e747a453bfd6ba5588fc6086922b Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 30 May 2019 16:36:58 +0530 Subject: [PATCH] refactor: style changes and template refactor --- erpnext/www/lms/content.html | 2 +- erpnext/www/lms/course.html | 24 ++++++++++++------------ erpnext/www/lms/program.html | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) 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 %} - + - {% 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 %}