<div class="np-card {{ card_classes }}">
	<div class="np-card-container">
		<div class="card__image" style="background-image: url({{ course.image_url }})">
			{% if course.ribbon and course.ribbon.size > 0 %}
				<div class="np-card-ribbon">
					{{ course.ribbon }}
				</div>
			{% endif %}
		</div>
		<div class="np-card-content np-card-content-vertical np-card-padding">
			<h3 class="np-card-content-title">
				{{ course.name }}
			</h3>
			{% if course.instructor_names and course.instructor_names.size > 0 %}
				<div class="np-card-content-subtitle">
					{{ course.instructor_names }}
				</div>
			{% endif %}
			{% if course.short_description and course.short_description.size > 0 %}
				<div class="np-card-content-description">
					{{ course.short_description | split: " --- " | last }}
				</div>
			{% endif %}
			<div class="np-card-content-footer">
				{% capture course_path %}{% route course, id: course.id %}{% endcapture %}
				<a class="np-button np-button-wide" href="{{ course_path }}">
					{% t shared.view %}
				</a>
				{% if course.enrolled? %}
					{% if course.has_to_restart? %}
						{% include "course_version_outdated_popup", path: course_path %}
					{% endif %}
					<div class="np-card-content-progress np-button-color">
						{% if course.completed? %}
							Complete
						{% elsif course.started? == false %}
							Enrolled
						{% else %}
							{{ course.progress }}% Complete
						{% endif %}
					</div>
				{% endif %}
			</div>
		</div>
	</div>
</div>
