Files
Gainsight/Custom_Templates/customer_templates/Instacart/catalog.html.liquid

54 lines
1.8 KiB
Plaintext

{% include "subheader_search" %}{% include "course_version_outdated_alert"
, courses: courses.in_catalog %}
{% comment %} Check if there are any courses in progress {% endcomment %}
{% assign hasInProgressCourses = false %}
{% for course in courses.enrolled %}
{% if course.progress > 0 and course.progress < 100 %}
{% assign hasInProgressCourses = true %}
{% break %}
{% endif %}
{% endfor %}
<main class="np-main np-catalog np-subpage-container np-max-width">
{% if hasInProgressCourses %}
<div>
<div class="global-section-title">
<span class="lang-en">In progress</span>
<span class="lang-es">En progreso</span>
</div>
<div class="global-section-subtitle">
<span class="lang-en">Continue where You left off</span>
<span class="lang-es">Continúa donde lo dejaste</span>
</div>
{% include "carrot_button"
, buttonUrl: "/app/dashboard"
, buttonText: "For you page"
, buttonTextEs: "Para tu página" %}
{% include "courses_carousel"
, items: courses.enrolled
, breakpoint: 768
, filterInProgress: true
, sortByPriority: false %}
</div>
{% endif %}
<div class="np-catalog-header-wrapper">
<div class="np-catalog-header">
<div class="global-section-title">{{ catalog.headline }}</div>
<div class="global-section-subtitle">{{ catalog.subheadline }}</div>
</div>
{% capture label %}{% t shared.filters.by_category %}{% endcapture %}
{% if courses.in_catalog.any? %}
{%
include "filter_dropdown"
, givenId: "courses_catalog_filter"
%}
{% endif %}
</div>
{% include "courses_catalog"
, courseslist: courses.enrolled
, filterInProgress: false
, eventId: "courses_catalog_filter" %}
</main>
{% include "footer" %}