{% if course.learner_can_retake? %}
	<form action="{% route course_retake, id: course.id %}" method="POST">
		{% form_authenticity_token %}
		<button type="submit" class="np-top-button np-button-font-color np-button np-button-big">
			<span data-lang="DE">Training wiederholen</span>
			<span data-lang="EN">Retake Course</span>			
		</button>
	</form>
{% else %}
	<a
		class="np-top-button np-button-font-color np-button np-button-big {% if course.ribbon == 'Demnächst' or course.ribbon == 'Coming soon' %}disabled{% endif %}"
		{% unless course.ribbon == 'Demnächst' or course.ribbon == 'Coming soon' %}
			{% if course.enrolled? %}
					href="{% route course_viewer, course_id: course.id, learning_path_id: params.learning_path_id %}"
			{% else %}
					href="{% route course_enrollment, code: course.enrollment_code %}"
			{% endif %}
		{% endunless %}
	>
		{% assign course_ribbon = course.ribbon | downcase %}
		{% if course_ribbon == "hochladen" or course_ribbon == "upload" %}
			<span data-lang="DE">Hochladen</span>
			<span data-lang="EN">Upload</span>
		{% else %}
			<span data-lang="DE">
				{% if course.enrolled? == false %}
					{% t shared.enroll %}
				{% elsif course.started? == false %}
					{% t shared.course.start, key: current_school.course_vocabulary %}
				{% elsif course.completed? %}
						{% t shared.course.view, key: current_school.course_vocabulary %}
				{% else %}
					{% t shared.continue %}
				{% endif %}
			</span>
			<span data-lang="EN">
				{% if course.enrolled? == false %}
					Enroll
				{% elsif course.started? == false %}
					Start
				{% elsif course.completed? %}
					Review
				{% else %}
					Continue
				{% endif %}
			</span>
			
		{% endif %}
	</a>
{% endif %}