77 lines
3.1 KiB
Plaintext
77 lines
3.1 KiB
Plaintext
{% include "header" %}
|
|
{% include "course_version_outdated_alert", courses: courses.enrolled %}
|
|
{% include "sub_navigation" %}
|
|
|
|
{% assign master_learning_path = false %}
|
|
{% assign master_learning_path_finished = false %}
|
|
|
|
{% if current_person.signed_in? %}
|
|
{% for group in current_person.groups %}
|
|
{% if group.id contains '33fb398a-df35-4f6d-b801-8bf4dc9d0937'%}
|
|
{% assign master_learning_path = true %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% for learning_path in learning_paths.available %}
|
|
{% if learning_path.id == '4d4aac7c-7831-4b27-a029-2d83764f7b2f' and learning_path.progress == 100 %}
|
|
{% assign master_learning_path_finished = true %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
<main class="np-main np-dashboard np-subpage-container np-max-width">
|
|
|
|
{% if master_learning_path %}
|
|
<div class="row np-flex-center">
|
|
<div class="section np-max-width col-xs-12 col-sm-8">
|
|
{% if master_learning_path_finished == false%}
|
|
<div class="np-resource-title">Take your required Learning Paths!</div>
|
|
{% for learning_path in learning_paths.available %}
|
|
{% if learning_path.id == 'f0444d09-3eae-4335-a8ec-419d818c01f9' and learning_path.progress < 100 %}
|
|
{% include "cards_learning_path" with learning_path %}
|
|
{% break %}
|
|
{% elsif learning_path.id == '9f4daafe-14e5-4771-9fb5-50752a9372fb' and learning_path.progress < 100 %}
|
|
{% include "cards_learning_path" with learning_path %}
|
|
{% break %}
|
|
{% elsif learning_path.id == '0f4f78e7-a0ab-4e92-b079-97736a8efc31' and learning_path.progress < 100 %}
|
|
{% include "cards_learning_path" with learning_path %}
|
|
{% break %}
|
|
{% elsif learning_path.id == '46108735-9ee0-4b25-a7d3-2dd72d17402f' and learning_path.progress < 100 %}
|
|
{% include "cards_learning_path" with learning_path %}
|
|
{% break %}
|
|
{% elsif learning_path.id == '4d4aac7c-7831-4b27-a029-2d83764f7b2f' and learning_path.progress < 100 %}
|
|
{% include "cards_learning_path" with learning_path %}
|
|
{% break %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% else %}
|
|
{%endif%}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="row np-flex-center">
|
|
<div class="col-xs-12 col-sm-8">
|
|
{% if features.learning_paths? %}
|
|
<div class="np-dashboard-resources-title">
|
|
Assigned {% t shared.learning_paths %}
|
|
</div>
|
|
{% include "learning_paths_index", items: learning_paths.enrolled %}
|
|
{% endif %}
|
|
<div class="np-dashboard-resources-title">
|
|
Assigned {% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %}
|
|
</div>
|
|
{% include "courses_index", class: "col-xs-12 col-sm-6 np-stretch-content" %}
|
|
</div>
|
|
{% if features.training_events? %}
|
|
<div class="np-grid-spacing col-xs-12 col-sm-4">
|
|
<div class="np-dashboard-resources-title">
|
|
{% t .upcoming_events %}
|
|
</div>
|
|
{% include "training_events_dashboard" %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</main>
|
|
{% include "footer" %}
|