{% endif %}
{% set lesson_index = get_lesson_index(membership.current_lesson) if membership and
membership.current_lesson
else '1.1' %}
{% if show_start_learing_cta %}
{{ _("Start Learning") }}
{% elif is_instructor(course.name) and not course.published and course.status == "Under Review" %}
{{ _("Submit for Review") }}
{% elif is_instructor(course.name) %}
{{ _("Checkout Course") }}
{% elif course.upcoming and not is_user_interested %}
{{ _("Notify me when available") }}
{% elif is_cohort_staff(course.name, frappe.session.user) %}
{{ _("Manage the course") }}
{% elif membership %}
{{ _("Continue Learning") }}
{% endif %}
{% set certificate = is_certified(course.name) %}
{% set progress = frappe.utils.cint(membership.progress) %}
{% if membership and course.enable_certification %}
{% if certificate %}
{{ _("Get Certificate") }}
{% elif course.grant_certificate_after == "Evaluation" and not certificate_request %}
{{ _("Apply for Certificate") }}
{% elif progress == 100 %}
{{ _("Get Certificate") }}
{% endif %}
{% endif %}
{{ _("Pick a Slot") }}
{% 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 %}