

{% assign skip_overview = false %}
  {% for category in course.categories %}
    {% if category.name == 'HelpDoc' %}
      {% assign skip_overview = true %}
    {% endif %}
  {% endfor %}
{% if skip_overview %}
  {% if course.enrolled? %}
    <script>
      window.location.replace('{% route course_viewer, course_id: course.id, learning_path_id: params.learning_path_id %}');
    </script>
  {% endif %}
  {% else %}
  {% include "header" %}
  <main class="np-main np-max-width np-page-container">
    <div class="np-hidden-mobile" id="course-desktop">
      {% include "course_desktop_view" %}
    </div>
    <div class="np-hidden-desktop" id="course-mobile">
      {% include "course_mobile_view" %}
    </div>
  </main>
  {% include "footer" %}
{% endif %}

