Updated Source & Supplier's Templates and moved them to sandbox.
This commit is contained in:
@ -1,28 +1,59 @@
|
||||
{% assign getting_started_courses = false %}
|
||||
{% assign merchandising_courses = false %}
|
||||
{% assign analysis_and_reporting_courses = false %}
|
||||
|
||||
{% for course in courses.in_catalog %}
|
||||
{% for category in course.categories %}
|
||||
{% if category.name == 'Getting Started' %}
|
||||
{% assign getting_started_courses = true %}
|
||||
{% endif %}
|
||||
{% if category.name == 'Merchandising' %}
|
||||
{% assign merchandising_courses = true %}
|
||||
{% endif %}
|
||||
{% if category.name == 'Analysis and Reporting' %}
|
||||
{% assign analysis_and_reporting_courses = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% include "header" %}
|
||||
{% include "course_version_outdated_alert", courses: courses.enrolled %}
|
||||
{% include "sub_navigation" %}
|
||||
<main class="np-main np-dashboard np-subpage-container np-max-width">
|
||||
<main class="np-main np-dashboard np-subpage-container np-max-width" style='background: #041e42;'>
|
||||
<div class="row np-flex-center">
|
||||
<div class="col-xs-12 col-sm-8">
|
||||
<div class="col-xs-12 col-md-8">
|
||||
{% if features.learning_paths? %}
|
||||
<div class="np-dashboard-resources-title">
|
||||
{% t shared.learning_paths %}
|
||||
<div class="heading-container">
|
||||
<div class="carousel-heading">
|
||||
{% t shared.learning_paths %}
|
||||
</div>
|
||||
</div>
|
||||
{% include "learning_paths_index", items: learning_paths.enrolled %}
|
||||
{% endif %}
|
||||
<div class="np-dashboard-resources-title">
|
||||
{% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %}
|
||||
</div>
|
||||
{% include "courses_index", class: "col-xs-12 col-sm-6 np-stretch-content" %}
|
||||
</div>
|
||||
<div class="np-grid-spacing col-xs-12 col-md-4 progress-section">
|
||||
{% include "widget_course_progress" %}
|
||||
</div>
|
||||
{% if features.training_events? %}
|
||||
<div class="np-grid-spacing col-xs-12 col-sm-4">
|
||||
<div class="np-dashboard-resources-title">
|
||||
{% t .upcoming_events %}
|
||||
</div>
|
||||
{% include "training_events_dashboard" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="row dashboard-section-courses">
|
||||
<div class="col-xs-12">
|
||||
{% if getting_started_courses %}
|
||||
{% include 'getting-started-carousel' %}
|
||||
{% endif %}
|
||||
{% if merchandising_courses %}
|
||||
{% include 'merchandising-carousel' %}
|
||||
{% endif %}
|
||||
{% if analysis_and_reporting_courses %}
|
||||
{% include 'analysis-and-reporting-carousel' %}
|
||||
{% endif %}
|
||||
{% comment %} {% include "training_events_index" %} {% endcomment %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</main>
|
||||
{% include "footer" %}
|
||||
{% include "footer" %}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user