Luminate templates mostly. Cin7 too.
This commit is contained in:
@ -28,33 +28,54 @@
|
||||
<div class="course-length">{{course.properties.course_length}}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
||||
{% else %}
|
||||
<div></div>
|
||||
{% endif %}
|
||||
<div class="np-card-content-footer">
|
||||
<div class="np-card-content-footer">
|
||||
<div class="np-card-content-progress np-button-color">
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
{{course.progress }}% Completo
|
||||
{% elsif course.progress == 100 %}
|
||||
{{course.progress }}% Completo
|
||||
{% else %}
|
||||
No empezado
|
||||
{% endif %}
|
||||
|
||||
{% if current_person.properties.language == "en" %}
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
{{course.progress }}% Complete
|
||||
{% elsif course.progress == 100 %}
|
||||
{{course.progress }}% Complete
|
||||
{% else %}
|
||||
Not Started
|
||||
{% endif %}
|
||||
{% elsif current_person.properties.language == "es" %}
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
{{course.progress }}% Completo
|
||||
{% elsif course.progress == 100 %}
|
||||
{{course.progress }}% Completo
|
||||
{% else %}
|
||||
No empezado
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% capture course_path %}{% route course, id: course.id %}{% endcapture %}
|
||||
{% if course.has_to_restart? %}
|
||||
{% include "course_version_outdated_popup", path: course_path %}
|
||||
{% endif %}
|
||||
<a class="np-button np-button-wide" href="{{ course_path }}">
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
Continue
|
||||
{% elsif course.progress == 100 %}
|
||||
Retake
|
||||
{% else %}
|
||||
View
|
||||
{% endif %}
|
||||
{% if current_person.properties.language == "en" %}
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
Continue
|
||||
{% elsif course.progress == 100 %}
|
||||
Retake
|
||||
{% else %}
|
||||
View
|
||||
{% endif %}
|
||||
{% elsif current_person.properties.language == "es" %}
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
Continuar
|
||||
{% elsif course.progress == 100 %}
|
||||
Repetir
|
||||
{% else %}
|
||||
Vista
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -24,13 +24,23 @@
|
||||
</div>
|
||||
<div class="np-card-content-footer">
|
||||
<div class="np-card-content-progress np-button-color">
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
{{course.progress }}% Completo
|
||||
{% elsif course.progress == 100 %}
|
||||
{{course.progress }}% Completo
|
||||
{% else %}
|
||||
No empezado
|
||||
{% endif %}
|
||||
{% if current_person.properties.language == "es" %}
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
{{course.progress }}% Completo
|
||||
{% elsif course.progress == 100 %}
|
||||
{{course.progress }}% Completo
|
||||
{% else %}
|
||||
No empezado
|
||||
{% endif %}
|
||||
{% elsif current_person.properties.language == "en" %}
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
{{course.progress }}% Complete
|
||||
{% elsif course.progress == 100 %}
|
||||
{{course.progress }}% Complete
|
||||
{% else %}
|
||||
Not Started
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="np-card-progress-bar-container">
|
||||
<div style="width: {{ course.progress }}%" class="np-button-background-color np-card-progress-bar">
|
||||
|
||||
@ -4,12 +4,14 @@
|
||||
<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">
|
||||
{% comment %}
|
||||
{% if features.learning_paths? %}
|
||||
<div class="Learning Paths np-dashboard-resources-title">
|
||||
{% t shared.learning_paths %}
|
||||
</div>
|
||||
{% include "learning_paths_index", items: learning_paths.enrolled %}
|
||||
{% endif %}
|
||||
{% endcomment %}
|
||||
<div class="Courses np-dashboard-resources-title">
|
||||
{% t shared.course_vocabulary.plural, key: current_school.course_vocabulary %}
|
||||
</div>
|
||||
|
||||
@ -113,6 +113,7 @@
|
||||
|
||||
{% include "homepage_featured", items: catalog_courses %}
|
||||
|
||||
{% comment %}
|
||||
<div class="np-max-width np-homepage-row-wrapper">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12" style="display:flex; flex-direction:column;">
|
||||
@ -151,7 +152,7 @@
|
||||
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endcomment %}
|
||||
</div>
|
||||
</div>
|
||||
{% comment %} {% if features.training_events? %}
|
||||
@ -178,7 +179,7 @@
|
||||
|
||||
{% include "homepage_ongoing_training", items: catalog_courses %}
|
||||
|
||||
{% include "homepage_topics" %}
|
||||
{% comment %} {% include "homepage_topics" %} {% endcomment %}
|
||||
<button
|
||||
type="button"
|
||||
class="popup-trigger"
|
||||
|
||||
Reference in New Issue
Block a user