101 lines
3.0 KiB
Plaintext
101 lines
3.0 KiB
Plaintext
<script>
|
|
window.location.href = '/app/partner-training'
|
|
</script>
|
|
{%comment%}
|
|
{% assign show_learning_paths_section = false %}
|
|
{% assign show_events_section = false %}
|
|
{% assign learning_path_section_classes = "" %}
|
|
{% assign event_section_classes = "" %}
|
|
{% assign learning_path_card_classes = "col-md-6" %}
|
|
{% assign event_card_classes = "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %}
|
|
|
|
{% if features.learning_paths? and learning_paths.enrolled and learning_paths.enrolled.any? %}
|
|
{% assign show_learning_paths_section = true %}
|
|
{% endif %}
|
|
|
|
{% if features.training_events? and training_events.enrolled and training_events.enrolled.any? %}
|
|
{% assign show_events_section = true %}
|
|
{% endif %}
|
|
|
|
{% if show_learning_paths_section %}
|
|
{% assign learning_path_section_classes = "col-md-8 col-lg-6" %}
|
|
{% assign learning_path_card_classes = "" %}
|
|
{% endif %}
|
|
|
|
{%if show_events_section%}
|
|
{% assign event_section_classes = "col-md-4 col-lg-6" %}
|
|
{% assign event_card_classes = "col-x-sm-6 col-sm-6 col-md-12 col-lg-6" %}
|
|
{%endif%}
|
|
|
|
{% include "header", current_page_orgin: "dashboard" %}
|
|
<main class="np-main np-dashboard np-subpage-container">
|
|
|
|
<div class="page__header-wrapper">
|
|
<h1 class="np-resource-title">My Dashboard</h1>
|
|
</div>
|
|
|
|
<div class="page__primary-content">
|
|
|
|
<div class="blocks-layout">
|
|
|
|
{% if courses.featured and courses.featured.any? %}
|
|
<div>
|
|
{% include "banner_course", course: courses.featured.first, button_text: "Get Started" %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if show_learning_paths_section or show_events_section %}
|
|
|
|
<div class="blocks-layout">
|
|
|
|
{% if show_learning_paths_section %}
|
|
<div class="{{ learning_path_section_classes }}">
|
|
<h2 class="np-dashboard-resources-title">
|
|
Learning Paths
|
|
</h2>
|
|
{% include "learning_paths_index", items: learning_paths.enrolled, card_classes: learning_path_card_classes %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if show_events_section %}
|
|
<div class="{{ event_section_classes }}">
|
|
<h2 class="np-dashboard-resources-title">
|
|
Upcoming Events
|
|
</h2>
|
|
{% include "training_events_dashboard", card_classes: event_card_classes %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
<div>
|
|
<h2 class="np-dashboard-resources-title">
|
|
My Courses
|
|
</h2>
|
|
{% if courses.enrolled and courses.enrolled.any? %}
|
|
<div class="blocks-layout">
|
|
{% for course in courses.enrolled %}
|
|
{% for category in course.categories %}
|
|
{% if category.name == 'Partner Training' %}
|
|
{% include "cards_course", course: course, card_classes: card_classes %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
{% capture message %}
|
|
{% t shared.zero_state.courses.index,
|
|
key: current_school.course_vocabulary
|
|
%}
|
|
{% endcapture %}
|
|
{% assign message = message | replace: "Courses", "tutorials" %}
|
|
{% include "courses_zero_state", message: message, filters_applied: false %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
{% include "footer" %}{%endcomment%} |