Luminate templates for a last minute launch! Parse CSV data was updated for testing.

This commit is contained in:
Norm Rasmussen
2024-01-30 17:55:02 -05:00
parent 8b29b4b425
commit 60399985b5
6 changed files with 104 additions and 8 deletions

View File

@ -5,7 +5,15 @@
{% endif %}
{% endfor %}
{% assign is_cert_category = false %}
{% for category in learning_path.categories %}
{% if category.name == 'Certifications' %}
{% assign is_cert_category = true %}
{% break %}
{% endif %}
{% endfor %}
{% if learning_path.enrolled? and course.unlocked? %}
{% if is_cert_category == true %}
<div class="np-learning-path-outline-bar np-hidden-mobile"></div>
<a
class="np-learning-path-outline-item np-card-container"
@ -20,7 +28,42 @@
<div class="np-learning-path-outline-content">
<div class="np-learning-path-outline-name np-top-title">
{{ course.name }}
</div>
</div>
{% if course.instructors %}
<div class="np-learning-path-outline-caption">
{{ course.instructors }}
</div>
{% endif %}
<div class="np-learning-path-outline-progress
{% if course.completed? %} np-color-success {% else %} np-button-color {% endif %}
">
{% t shared.progress, count: course.progress %}
</div>
</div>
<i class="fas fa-chevron-right np-learning-path-outline-icon"></i>
{% if course.optional? %}
<div class="np-optional-ribbon">
{% t shared.optional %}
</div>
{% endif %}
</div>
</a>
{% else %}
<div class="np-learning-path-outline-bar np-hidden-mobile"></div>
<a
class="np-learning-path-outline-item np-card-container"
href="{% route learning_path_course, learning_path_id: learning_path.id, id: course.id %}"
>
<div class="np-card-content np-card-padding">
<img
src="{{ item.image }}"
alt="{{ course.name }}"
class="np-learning-path-outline-course-image"
>
<div class="np-learning-path-outline-content">
<div class="np-learning-path-outline-name np-top-title">
{{ course.name }}
</div>
{% if course.instructors %}
<div class="np-learning-path-outline-caption">
{{ course.instructors }}
@ -46,6 +89,28 @@
{% endif %}
</div>
</a>
{% endif %}
{% else %}
{% if is_cert_category == true %}
<div class="np-learning-path-outline-item np-learning-path-outline-inactive-item np-card-container">
<div class="np-card-content np-card-padding">
<img
src="{{ item.image }}"
alt="{{ course.name }}"
class="np-learning-path-outline-course-image"
>
<div class="np-learning-path-outline-content">
<div class="np-learning-path-outline-name np-top-title">
{{ course.name }}
</div>
{% if course.optional? %}
<div class="np-optional-ribbon">
{% t shared.optional %}
</div>
{% endif %}
</div>
</div>
</div>
{% else %}
<div class="np-learning-path-outline-item np-learning-path-outline-inactive-item np-card-container">
<div class="np-card-content np-card-padding">
@ -72,4 +137,5 @@
{% endif %}
</div>
</div>
{% endif %}
{% endif %}

View File

@ -7,15 +7,27 @@
<div class="np-resource-subtitle">{{ custom_page.subheadline }}</div>
</div>
</div>
<div class="np-learning-paths-main">
{% for learning_path in learning_paths.available %}
{% for category in learning_path.categories %}
{% if category.name == 'Certifications' %}
{% include "learning_path" %}
</div>
{% else %}
{% endif %}
{% endfor %}
{% endfor %}
{% comment %}
<div class="row">
<div class="col-xs-12">
<div class="np-dashboard-resources-container">
<div class="np-zero-state-text">
<div class="np-zero-state-text">
{{ custom_page.content }}
</div>
<img class="np-zero-state-courses" />
</div>
</div>
</div>
{% endcomment %}
</main>
{% include "footer" %}