{% set onboarding_settings = frappe.db.get_single_value("LMS Settings", "is_onboarding_complete") %} {% set course_created = frappe.db.count("LMS Course") %} {% set chapter_created = frappe.db.count("Course Chapter") %} {% set lesson_created = frappe.db.count("Course Lesson") %} {% set quiz_created = frappe.db.count("LMS Quiz") %} {% set first_course = frappe.db.get_all("LMS Course", order_by="creation", pluck="name")[0] %} {% set is_onboarding_complete = onboarding_settings or (course_created and chapter_created and lesson_created and quiz_created) %} {% if has_course_moderator_role() and not is_onboarding_complete %}
{{ _("Skip") }}
{{ _("Get Started") }}
{{ _("Lets start setting up your content on the LMS so that you can reclaim time and focus on growth.") }}
{% endif %}