31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
{% if current_person.signed_in? and course.enrolled? %}
|
|
<script>
|
|
window.location.replace('{% route course_viewer, course_id: course.id, learning_path_id: params.learning_path_id %}')
|
|
</script>
|
|
{% else %}
|
|
<main>
|
|
{% include "course_green_card" %}
|
|
{% if course.instructors and course.instructors.size > 0 %}
|
|
{% include "course_instructor_card" %}
|
|
{% endif %}
|
|
{% include "course_outline" %}
|
|
{% include "catalog_faq" %}
|
|
{% include "course_recommended_courses" %}
|
|
|
|
{% unless current_person.signed_in? %}
|
|
{% assign banner_title = "How to get most out of Pipedrive?" %}
|
|
{% assign banner_text = "Welcome to Pipedrive Academy! Pipedrive Academy features CRM training videos and tutorials to help you level up your CRM and sales skills, from quick CRM courses to in-depth tutorials on specific features." %}
|
|
{% assign banner_button_text = "Start today" %}
|
|
{% assign banner_button_link = "#sso-widget" %}
|
|
{% include "green_banner_text_bg_image" %}
|
|
{% endunless %}
|
|
</main>
|
|
|
|
<script>
|
|
addEventListener("DOMContentLoaded", () => {
|
|
document.querySelector('#side-menu-courses')?.classList.add('side-menu-link-active');
|
|
document.querySelector('.header-navigation-item[href="/app/catalog"]')?.classList.add('header-navigation-item-active');
|
|
})
|
|
</script>
|
|
{% endif %}
|