30 lines
998 B
Plaintext
30 lines
998 B
Plaintext
{% 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="{{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 %}
|