Files
Gainsight/Custom_Templates/customer_templates/AIIM+/dashboard.html.liquid

49 lines
2.1 KiB
Plaintext

{% assign completed_courses = 0 %}
{% for course in courses.enrolled %}
{% if course.completed? %}
{% assign completed_courses = completed_courses | plus: 1 %}
{% endif %}
{% endfor %}
{% include "header" %}
{% include "course_version_outdated_alert", courses: courses.enrolled %}
{% include "sub_navigation" %}
<main class="np-main np-dashboard np-subpage-container np-max-width">
{% if current_person.signed_in?%}
<div class="main-point-counter" style="font-size: 20px; display: flex; flex-direction: row; width: 30%; background-color: #59697b; color: #fff; padding: 10px; border-radius: 10px; margin-bottom: 20px; min-width: 320px;">
<div style="padding-left: 10px;">You have completed</div>
<div style="padding: 0 8px;">{{completed_courses}}</div>
<div>courses</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">
{% t shared.learning_paths %}
</div>
{% include "learning_paths_index", items: learning_paths.enrolled %}
{% endif %}
<div class="np-dashboard-resources-title">
{% 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>
<div class="np-grid-spacing col-xs-12 col-sm-4">
<div class="completion-list">
<div style="font-size: 20px; font-weight: 500;">Your completed courses:</div>
<ul style="list-style-type: none; padding-left: 0;">
{% for course in courses.enrolled %}
{% if course.completed?%}
<dt style="display: flex; flex-direction: row; justify-content: space-between; padding-top: 10px; margin-top: 0;">
<div style="max-width: 70%; margin-right: 15px;"> {{course.name}} </div>
<div style="float: right; align-self: center;"> {{course.properties.ceu}} CEU</div>
</dt>
{% endif %}
{%endfor%}
</ul>
</div>
</div>
</div>
</main>
{% include "footer" %}