Got groups and courses for Walmart Supplier. Updated the carousel and recommended for Chubb - haven't pushed to prod yet.
This commit is contained in:
@ -1,3 +1,16 @@
|
||||
{% if current_person.groups.any? %}
|
||||
{% for group in current_person.groups %}
|
||||
{% if group.id == '' %}
|
||||
{% comment %}
|
||||
< ----------------------------->
|
||||
The carousel HTML goes here.
|
||||
< ----------------------------->
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if current_person.groups.any? %}
|
||||
{% for group in current_person.groups %}
|
||||
{% if group.id == '5766ee65-0f6e-42fa-b932-a26b3bbb1636' %}
|
||||
@ -35,15 +48,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% elsif group.id == '' %}
|
||||
{% comment %}
|
||||
<------------------------------->
|
||||
Jenelle, similar to above for Cornerstone, please add your carousel items here!
|
||||
<------------------------------->
|
||||
{% endcomment %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% unless group.id = '' %}
|
||||
<div class="feature-card-wrapper">
|
||||
<div class="feature-card-container">
|
||||
<div class="feature-card-content feature-content">
|
||||
@ -127,4 +132,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
@ -1,44 +1,70 @@
|
||||
{% assign content_counter = 0 %}
|
||||
|
||||
{% for course in courses.in_catalog %}
|
||||
{% for category in course.categories %}
|
||||
{% if category.name == 'Recommended' %}
|
||||
{% if current_person.groups.any? %}
|
||||
{% for group in current_person.groups %}
|
||||
{% for course in courses.in_catalog %}
|
||||
{% for category in course.categories %}
|
||||
{% if group.id = '' and category.name = 'Recommended - ' %}
|
||||
{% assign content_counter = content_counter | plus: 1 %}
|
||||
{% elsif category.name == 'Recommended' %}
|
||||
{% assign content_counter = content_counter | plus: 1 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% for learning_path in learning_paths.available %}
|
||||
{% for category in learning_path.categories %}
|
||||
{% if category.name == 'Recommended' %}
|
||||
{% assign content_counter = content_counter | plus: 1 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if current_person.groups.any? %}
|
||||
{% for group in current_person.groups %}
|
||||
{% for learning_path in learning_paths.available %}
|
||||
{% for category in learning_path.categories %}
|
||||
{% if group.id = '' and category.name = 'Recommended - ' %}
|
||||
{% assign content_counter = content_counter | plus: 1 %}
|
||||
{% elsif category.name == 'Recommended' %}
|
||||
{% assign content_counter = content_counter | plus: 1 %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% comment %}
|
||||
To add for Chubb:
|
||||
If person is in group show certain courses.
|
||||
|
||||
{% endcomment%}
|
||||
<div class="recommended-carousel-wrapper">
|
||||
<div class="recommended-carousel">
|
||||
{% for course in courses.in_catalog%}
|
||||
{% for category in course.categories %}
|
||||
{% if category.name == 'Recommended' %}
|
||||
<div class="carousel-card-container">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% for learning_path in learning_paths.available %}
|
||||
{% for category in learning_path.categories %}
|
||||
{% if category.name == 'Recommended' %}
|
||||
<div class="carousel-card-container">
|
||||
{% include "cards_learning_path" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% if current_person.groups.any? %}
|
||||
{% for group in current_person.groups %}
|
||||
{% for course in courses.in_catalog%}
|
||||
{% for category in course.categories %}
|
||||
{% if group.id = '' and category.name = 'Recommended - ' %}
|
||||
<div class="carousel-card-container">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% elsif category.name == 'Recommended' %}
|
||||
<div class="carousel-card-container">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if current_person.groups.any? %}
|
||||
{% for group in current_person.groups %}
|
||||
{% for learning_path in learning_paths.available %}
|
||||
{% for category in learning_path.categories %}
|
||||
{% if group.id = '' and category.name = 'Recommended - ' %}
|
||||
<div class="carousel-card-container">
|
||||
{% include "cards_learning_path" %}
|
||||
</div>
|
||||
{% elsif category.name == 'Recommended' %}
|
||||
<div class="carousel-card-container">
|
||||
{% include "cards_learning_path" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user