Some notes and file clean up. JJSV Templates
This commit is contained in:
@ -1,5 +1,23 @@
|
||||
{% assign is_skipped_category = false %}
|
||||
|
||||
{% for cat in course.categories %}
|
||||
{% assign cat_name = cat.name | downcase %}
|
||||
{% if cat_name contains "podcast" or cat_name contains "document" or cat_name contains "publication" %}
|
||||
{% assign is_skipped_category = true %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if course.properties.skip_course_cover_page or is_skipped_category %}
|
||||
{% if course.enrolled? %}
|
||||
<script>window.location.replace('{% route course_viewer, course_id: course.id, learning_path_id: params.learning_path_id %}')</script>
|
||||
{% else %}
|
||||
<script>window.location.replace('{% route course_enrollment, code: course.enrollment_code %}')</script>
|
||||
{% endif %}
|
||||
|
||||
{% else %}
|
||||
|
||||
{% include "header" %}
|
||||
{% comment %} {% include "sub_navigation" %} {% endcomment %}
|
||||
|
||||
<main class="np-main np-max-width np-page-container">
|
||||
<div class="np-hidden-mobile" id="course-desktop">
|
||||
{% include "course_desktop_view" %}
|
||||
@ -57,4 +75,5 @@
|
||||
margin: 0 -1px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user