{% 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) }} {{ CourseOutlineAndCreator(course) }} {{ Mentors(course) }} {{ CourseDescriptionAndOverview(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 %}
Start Learning
{% endif %} {% if membership %} {% set lesson_index = course.get_lesson_index(membership.current_lesson) if membership and membership.current_lesson else '1.1' %} Continue Learning {% endif %} {% if course.upcoming %} {% endif %} {% if course.video_link %}
Watch Video Preview
{% endif %} {% set certificate = course.is_certified() %} {% if certificate %} Get Certificate {% endif %}
{% endmacro%} {% macro CourseOutlineAndCreator(course) %}
{{ widgets.CourseOutline(course=course, membership=membership) }}
Creator
{{ widgets.MemberCard(member=course.get_instructor(), show_course_count=True, dimension_class="member-card-large") }}
{% set progress = course.get_course_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) }}%
{% endif %}
{% endmacro %} {% macro Mentors(course) %} {% if course.get_mentors() | length %}
Mentors
{% for mentor in course.get_mentors() %} {{ widgets.MemberCard(member=mentor, show_course_count=False, dimension_class="") }} {% endfor %}
View all mentors
{% endif %} {% endmacro %} {% macro CourseDescriptionAndOverview(course) %}
Course Description
{{ frappe.utils.md_to_html(course.description) }}
{% set avg_rating = course.get_average_rating() %} {% if course.get_students() | length or avg_rating %}
Overview
{% if course.get_students() | length %}
{{ course.get_students() | length }} Enrolled
{% endif %} {% if avg_rating %}
{{ avg_rating }} Rating
{% endif %}
{% endif %}
{% endmacro %}