{% if current_school.filtering_enabled? and current_person.filterable_catalog_categories.count > 0 %}
  <div class="uk-width-medium-1-6 uk-block uk-padding uk-list-mod">
      <h3 class="h3-size-mod">Browse by Category</h3>
    <ul class="uk-list uk-list-space uk-list-mod ">
      <li class="uk-margin-top">
        {% if query_parameter_value %}
          {% capture reset_filters_route %}{{ routes.school_website_catalog_search_path }}?q={{ query_parameter_value }}{% endcapture %}
        {% else %}
          {% assign reset_filters_route = routes.school_website_catalog_path %}
        {% endif %}
        <a href="{{ reset_filters_route }}" class="{% unless filter_parameter_value %} uk-button category-chosen {% endunless %}" data-test="catalog-filter-all">
          All Courses
        </a>
      </li>
      {% for filterable_category in current_person.filterable_catalog_categories %}
        <li>
          <a href="{{ filterable_category.catalog_link }}" class="{% if filterable_category.active? %}uk-button category-chosen{% endif %}" data-test="catalog-filter-category">
            {{ filterable_category.name }}
          </a>
        </li>
      {% endfor %}
    </ul>
  </div>
{% endif %}
