Some notes and file clean up. JJSV Templates

This commit is contained in:
Norm Rasmussen
2023-02-06 15:07:51 -05:00
parent b9a39a8164
commit 3ab8bc6ff4
62 changed files with 880 additions and 163 deletions

View File

@ -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 %}