Instacart, while still in implementation, came to their AE (J.Jones) with some access issues. Some of these templates don't work yet (internal server errors) but backing them up just in case

This commit is contained in:
Norm Rasmussen
2025-07-11 13:51:31 -04:00
parent 75455bbf4e
commit 3f0bd96040
146 changed files with 4977 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{% 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" %}