{% if courses.enrolled.any? %}
  <div class="row row-with-thumbnails">
    {% for course in courses.enrolled %}
      {% assign course_categories = "" %}
      {% for cat in course.categories %}
        {% assign cat_name = cat.name | replace: " ", "-" | downcase %}
        {% assign course_categories = course_categories | append: cat_name %}
      {% endfor %}
      <div class="{{ class }} course-columns" data-categories='{{course_categories}}'>
        {% 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 %}