diff --git a/school/lms/widgets/CourseCard.html b/school/lms/widgets/CourseCard.html index a531cae5..c9255b47 100644 --- a/school/lms/widgets/CourseCard.html +++ b/school/lms/widgets/CourseCard.html @@ -25,25 +25,27 @@ {% endif %} - {% set student_count = get_students(course.name) | length %} - {% if student_count %} -
- - - - {{ student_count }} -
- {% endif %} - - {% set avg_rating = get_average_rating(course.name) %} - {% if avg_rating %} -
- - - - {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} -
+
+ {% set student_count = get_students(course.name) | length %} + {% if student_count %} +
+ + + + {{ student_count }} +
{% endif %} + + {% set avg_rating = get_average_rating(course.name) %} + {% if avg_rating %} +
+ + + + {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} +
+ {% endif %} +
{{ course.title }}