{% 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 %}
Notify me when available
{% endif %}
{% if is_cohort_staff(course.name, frappe.session.user) %}
Manage the course
{% endif %}
{% set certificate = is_certified(course.name) %}
{% set progress = frappe.utils.cint(membership.progress) %}
{% if certificate %}
{{ _("Get Certificate") }}
{% elif course.enable_certification and progress == 100 %}
{{ _("Get Certificate") }}
{% endif %}
{% endmacro %}
{% macro Description(course) %}
{{ frappe.utils.md_to_html(course.description) }}
{% endmacro %}
{% macro CourseCreator(course) %}
{{ _("Course Creators") }}
{% set instructors = get_instructors(course.name) %}
{% for instructor in instructors %}