68 lines
2.2 KiB
Plaintext
68 lines
2.2 KiB
Plaintext
{% 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">
|
|
<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>
|
|
<div class="np-dashboard-resources-title">My Points</div>
|
|
<div class="np-card">
|
|
<div class="np-card-container np-dashboard-border" style="text-align: center;">
|
|
<h1 class="user-point-num" style="margin-bottom: 1rem;">{{ current_person.properties.learner_points }}</h1>
|
|
<h3 class="user-point-label" style="margin-top: 1rem;">Points</h3>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% assign courseCompletedCouter = 0 %}
|
|
{% for course in courses.enrolled %}
|
|
{% if course.progress == 100 %}
|
|
{% assign courseCompletedCouter = courseCompletedCouter | plus: 1 %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
<div class="achievements-box" style="{% if courseCompletedCouter > 0%}display: block !important;{% endif %}">
|
|
<div class="np-dashboard-resources-title">Recent Achievements</div>
|
|
{% include "widget_achievements" %}
|
|
</div>
|
|
|
|
{% if features.training_events? %}
|
|
<div>
|
|
<div class="np-dashboard-resources-title">
|
|
{% t .upcoming_events %}
|
|
</div>
|
|
{% include "training_events_dashboard" %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
{% include "footer" %}
|
|
|
|
<style>
|
|
.achievements-box{
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 767px){
|
|
.user-point-num{
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
.user-point-label{
|
|
padding-bottom: 1rem;
|
|
}
|
|
}
|
|
</style> |