{% if courses_type == 'catalog' %}
  {% if courses.in_catalog.any? %}
    <div class="row row-with-thumbnails" id="courses-row">
      {% for course in courses.in_catalog %}
        {% include "cards_course" with course %}
      {% endfor %}
      <div class="no-catalog-courses search-hidden">
        No courses matches your search.
      </div>
    </div>
  {% else %}
    {% capture message %}
      {% t shared.zero_state.courses.index,
        key: current_school.course_vocabulary
      %}
    {% endcapture %}
    {% include "courses_zero_state", message: message %}
  {% endif %}
{% elsif courses_type == 'enrolled' %}
  {% if courses.enrolled.any? %}
    <div class="row row-with-thumbnails" id="courses-row">
      {% for course in courses.enrolled %}
        {% include "cards_course" with course %}
      {% endfor %}
      <div class="no-catalog-courses search-hidden">
        No courses matches your search.
      </div>
    </div>
  {% else %}
    {% capture message %}
      {% t shared.zero_state.courses.index,
        key: current_school.course_vocabulary
      %}
    {% endcapture %}
    {% include "courses_zero_state", message: message %}
  {% endif %}
{% endif %}

