Files
Gainsight/Custom_Templates/customer_templates/Walmart Supplier Sandbox/grow-with-walmart-catalog.html.liquid

55 lines
1.6 KiB
Plaintext

{% if current_person.properties.first_login == true %}
<script>
window.location.replace('/app');
</script>
{% endif %}
{% include "header" %}
{% include "sub_navigation" %}
<main class="np-main np-catalog np-subpage-container np-max-width">
{% include 'grow_with_walmart_banners' %}
<div class="lps-wrapper">
{% for learning_path in learning_paths.enrolled %}
{% for category in learning_path.categories %}
{% if us_user_grow %}
{% if category.name == 'Grow With Walmart' %}
{% include "cards_learning_path" %}
{% endif %}
{% elsif us_user_supplier %}
{% unless category.name == 'Walmart Vriddhi' or category.name == 'Crece con Walmart' %}
{% include "cards_learning_path" %}
{% endunless %}
{% elsif india_user %}
{% if category.name == 'Walmart Vriddhi' %}
{% include "cards_learning_path" %}
{% endif %}
{% elsif mexico_user %}
{% if category.name == 'Crece con Walmart' %}
{% include "cards_learning_path" %}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
{% if us_user_grow == false and us_user_supplier == false and india_user == false and mexico_user == false %}
{% capture message %}
{% t shared.zero_state.courses.catalog,
key: current_school.course_vocabulary
%}
{% endcapture %}
{% include "grow-with-walmart-zero-state", message: message %}
{% endif %}
</div>
</main>
{% include "footer" %}
<style>
@media screen and (min-width: 768px) {
.np-card-content-description {
display: block;
}
}
</style>