<div class="np-category-card">
    {% if course.ribbon %}
      <div class="np-card-ribbon">
        {{ course.ribbon }}
      </div>
    {% endif %}
    <img
      class="np-card-image np-category-card-image"
      alt="{{ course.name }}"
      src="{{ course.image_url }}"
    >
    <div class="np-category-card-content np-card-content-vertical np-flex-column">
      <h3 class="np-category-card-content-title">
        {{ course.name }}
      </h3>
      <div class="np-category-card-content-footer">
          {{ course.full_description }}
      </div>
      <br>
      {% capture course_path %}{% route course, id: course.id %}{% endcapture %}
      {% if course.has_to_restart? %}
        {% include "course_version_outdated_popup", path: course_path %}
      {% endif %}
      <a class="np-button np-button-wide category-course-button" href="{{ course_path }}">
        {% t shared.view %}
      </a>
    </div>
</div>
