Tasks.
This commit is contained in:
@ -0,0 +1,83 @@
|
||||
{% assign quiz_only = false %}
|
||||
{% assign course_name = course.name | downcase%}
|
||||
{% if course_name contains "in-person training" %}
|
||||
{% assign none_quiz_found = false %}
|
||||
|
||||
{% for section in course.sections %}
|
||||
{% if none_quiz_found %}
|
||||
{%break%}
|
||||
{% endif %}
|
||||
{% for activity in section.activities %}
|
||||
{%if activity.type != "quiz" %}
|
||||
{% assign none_quiz_found = true %}
|
||||
{%break%}
|
||||
{%endif%}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% if none_quiz_found == false%}
|
||||
{%assign quiz_only = true%}
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% assign pres_only = false %}
|
||||
{% assign course_name = course.name | downcase%}
|
||||
{% if course_name contains "presentation slides" %}
|
||||
{% assign none_pres_found = false %}
|
||||
|
||||
{% for section in course.sections %}
|
||||
{% if none_pres_found %}
|
||||
{%break%}
|
||||
{% endif %}
|
||||
{% for activity in section.activities %}
|
||||
{%if activity.type != "document" %}
|
||||
{% assign none_pres_found = true %}
|
||||
{%break%}
|
||||
{%endif%}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% if none_pres_found == false%}
|
||||
{%assign pres_only = true%}
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% assign discussion = false %}
|
||||
{% assign course_name = course.name | downcase%}
|
||||
{% if course_name contains "live discussion" %}
|
||||
{% assign none_discussion = false %}
|
||||
|
||||
{% for section in course.sections %}
|
||||
{% if none_discussion%}
|
||||
{%break%}
|
||||
{% endif %}
|
||||
{% for activity in section.activities %}
|
||||
{%if activity.type != "richtext" %}
|
||||
{% assign none_discussion = true %}
|
||||
{%break%}
|
||||
{%endif%}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% if none_discussion == false%}
|
||||
{%assign discussion = true%}
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{% 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" %}
|
||||
|
||||
Reference in New Issue
Block a user