Updated some Williams-Sonoma templates.
This commit is contained in:
@ -0,0 +1,27 @@
|
||||
{% if courses.enrolled.any? %}
|
||||
<div class="row row-with-thumbnails">
|
||||
{% for course in courses.enrolled %}
|
||||
{% assign category_ids = '' %}
|
||||
{% for category in course.categories %}
|
||||
{% assign category_ids = category_ids | append: category.id | append: '~' %}
|
||||
{% endfor %}
|
||||
{% 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}}">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
{% capture message %}
|
||||
{% t shared.zero_state.courses.index,
|
||||
key: current_school.course_vocabulary
|
||||
%}
|
||||
{% endcapture %}
|
||||
{% include "courses_zero_state"
|
||||
, message: message %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user