diff --git a/lms/lms/widgets/CourseCard.html b/lms/lms/widgets/CourseCard.html index d8a11583..60fab842 100644 --- a/lms/lms/widgets/CourseCard.html +++ b/lms/lms/widgets/CourseCard.html @@ -15,95 +15,90 @@
-
- {% if get_lessons(course.name) | length %} -
- - - - {{ get_lessons(course.name) | length }} {{ _("Lessons") }} -
- {% endif %} - - {% if course.status and course.status != "Approved"%} - {% set pill_color = "gray" if course.status == "In Progress" else "orange" %} -
{{ course.status }}
- {% endif %} - - {% set student_count = get_students(course.name) | length %} - {% set avg_rating = get_average_rating(course.name) %} - {% if student_count or avg_rating %} -
- {% if student_count %} +
+ {% if get_lessons(course.name) | length %}
- - - - {{ student_count }} + + + + {{ get_lessons(course.name) | length }}
- {% endif %} + {% endif %} + + {% if course.status and course.status != "Approved"%} + {% set pill_color = "gray" if course.status == "In Progress" else "orange" %} +
{{ course.status }}
+ {% endif %} + + {% set student_count = get_students(course.name) | length %} + {% set avg_rating = get_average_rating(course.name) %} + {% if student_count %} +
+ + + + {{ student_count }} +
+ {% endif %} {% if avg_rating %} -
- - - - {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} +
+ + + + {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }}
{% endif %} {% if course.paid_certificate %} -
+
- + {{ format_amount(course.price_certificate, course.currency) }}
{% endif %} -
+
{{ course.title }}
+ + {% if membership and not read_only %} +
+
+ {{ progress }} {{ _("Complete") }} +
+
+
{{ progress }}% {{ _("Completed") }}
{% endif %} -
-
{{ course.title }}
- {% if membership and not read_only %} -
-
- {{ progress }} {{ _("Complete") }} -
-
-
{{ progress }}% {{ _("Completed") }}
- {% endif %} - - {% if read_only %}