Hackerrank new templates in sandbox. updated a bunch of williams-sonoma stuff. GSU backup.

This commit is contained in:
Norm Rasmussen
2024-10-24 16:50:02 -04:00
parent 1335c4c29b
commit 3626ead591
42 changed files with 839 additions and 265 deletions

View File

@ -1,17 +1,19 @@
{% if courses.enrolled.any? %}
<div class="row row-with-thumbnails">
{% for course in courses.enrolled %}
{% comment %}
{% assign category_ids = '' %}
{% for category in course.categories %}
{% assign category_ids = category_ids | append: category.id | append: '~' %}
{% endfor %}
{% endcomment %}
{% assign progress_label = 'not-started' %}
{% if course.progress > 0 and course.progress < 100 %}
{% assign progress_label = 'in-progress' %}
{% elsif course.progress == 100 %}
{% assign progress_label = 'completed' %}
{% endif %}
<div class="{{ class }} filterable-course" data-filter="{{category_ids}}{{progress_label}}">
<div class="{{ class }} filterable-course" data-filter="{{progress_label}}">
{% include "cards_course" with course %}
</div>
{% endfor %}
@ -24,4 +26,4 @@
{% endcapture %}
{% include "courses_zero_state"
, message: message %}
{% endif %}
{% endif %}