+
+ {% if course.get_chapters() | length %}
+
+ {{ course.get_chapters() | length }} {{ _("Chapters") }}
+
+ {% endif %}
+ {% if course.get_chapters() | length and course.get_upcoming_batches() | length %}
+ .
+ {% endif %}
+ {% if course.get_upcoming_batches() | length %}
+
+ {{ course.get_upcoming_batches() | length }} {{ _("Open Batches") }}
+
+ {% endif %}
+
+
{{ course.title }}
+
+
+ {{ widgets.Avatar(member=course.get_instructor(), avatar_class="avatar-small") }}
+
+
+ {{ course.get_instructor().full_name }}
- {% endif %}
+
+
+
+ {% if course.get_students() | length %}
+
+
+ {{ course.get_students() | length }}
+ {% endif %}
+ {% set avg_rating = course.get_average_rating() %}
+ {% if avg_rating %}
+
+
+ {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }}
-
-
- {% if read_only %}
-
- {% else %}
-
- {% set lesson_index = course.get_lesson_index(membership.current_lesson) if membership and
- membership.current_lesson else '1.1' %}
- {% set query_parameter = "?batch=" + membership.batch if membership and
- membership.batch else "" %}
- {% set certificate = course.is_certified() %}
-
- {% if certificate %}
-
- _("Get Certificate")

-
-
-
- {% elif course.enable_certification and progress == 100 %}
-
- {{ _("Get Certificate") }}

-
-
- {% elif progress == 100 %}
-
- {{ _("Course Completed") }}

-
-
-
- {% elif course.upcoming %}
-
- {{ _("Upcoming Course") }}

-
-
-
- {% elif membership %}
-
- {{ _("Continue Course") }}

-
-
-
- {% else %}
-
- {{ _("View Course") }}

-
-
-
- {% endif %}
- {% endif %}
+ {% endif %}
+
+
+ {% if read_only %}
+