{% extends "templates/base.html" %} {% from "www/macros/common_macro.html" import MentorsSection %} {% block title %}{{ course.title }} {% endblock %} {% block head_include %} {% endblock %} {% block content %}
{{ widgets.BreadCrumb(course=course) }} {{ CourseCardWide(course) }} {{ CourseSections(course) }} {{ Mentors(course) }} {{ widgets.Reviews(course=course, membership=membership) }}
{% endblock %} {% macro CourseCardWide(course) %}
{% for tag in course.get_tags() %}
{{ tag }}
{% endfor %}
{% if not course.image %}
{{ course.title[0] }}
{% endif %}
{{ course.title }}
{{ course.short_introduction }}
{% if not course.disable_self_learning and not membership and not course.upcoming and not restriction.restrict %}
{{ _("Start Learning") }}
{% endif %} {% if membership %} {% set lesson_index = get_lesson_index(membership.current_lesson) if membership and membership.current_lesson else '1.1' %} Continue Learning {% endif %} {% if course.upcoming and not is_user_interested %} {% endif %} {% if course.video_link %}
Watch Video Preview
{% endif %} {% if is_cohort_staff(course.name, frappe.session.user) %} Manage the course {% endif %}
You have opted to be notified for this course. You will receive an email when the course becomes available. ×
{% if course.video_link %} {% endif %} {% endmacro%} {% macro CourseSections(course) %}
{{ widgets.CourseOutline(course=course, membership=membership) }} {{ Description(course) }}
{{ CreatorSection(course) }} {{ Progress(course) }} {{ Overview(course) }}
{% endmacro %} {% macro CreatorSection(course) %}
Creator
{% for instructor in get_instructors(course.name) %} {{ widgets.MemberCard(member=instructor, show_course_count=True, avatar_class="avatar-large") }} {% endfor %}
{% endmacro %} {% macro Progress(course) %} {% set certificate = is_certified(course.name) %} {% set progress = frappe.utils.cint(membership.progress) %} {% if progress %}
Your Progress

{% if progress != 100 %} Great work so far! {% else %} Excellent work on completing this course 👏 {% endif %}

{% if progress != 100 %} Challenge yourself to complete the lessons and grow professionally. {% else %} You have reached a new level in your journey to success! {% endif %}

{{ frappe.utils.rounded(progress) }}%
{% if certificate %} Get Certificate {% endif %}
{% endif %} {% endmacro %} {% macro Description(course) %}
Course Description
{{ frappe.utils.md_to_html(course.description) }}
{% endmacro %} {% macro Overview(course) %} {% set avg_rating = get_average_rating(course.name) %} {% if get_students(course.name) | length or avg_rating %}
Overview
{% if get_students(course.name) | length %}
{{ get_students(course.name) | length }} Enrolled
{% endif %} {% if avg_rating %}
{{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} Rating
{% endif %}
{% endif %} {% endmacro %} {% macro Mentors(course) %} {% if get_mentors(course.name) | length %}
Mentors
{% for mentor in get_mentors(course.name) %} {{ widgets.MemberCard(member=mentor, show_course_count=False) }} {% endfor %}
View all mentors
{% endif %} {% endmacro %}