Artera requested the new course content to be added more places.

This commit is contained in:
Norm Rasmussen
2025-12-09 17:03:23 -05:00
parent e44a1a67d3
commit e9ea1556e8
8 changed files with 25 additions and 4 deletions

View File

@ -24,6 +24,9 @@
<a href="{{ course_path }}">
{{ course.name }}
</a>
{% if course.has_to_restart? %}
{% include "course_version_outdated_popup", path: course_path %}
{% endif %}
</h6>
<p style="min-height: 2rem">{{ course.short_description }}</p>

View File

@ -24,6 +24,13 @@
</button>
</form>
{% else %}
{% if course.has_to_restart? %}
{% include "course_version_outdated_popup", path: course %}
<script>
console.log("course has to restart?");
console.log("{{ course.has_to_restart? }}")
</script>
{% endif %}
<a
class="np-top-button np-button-font-color np-button np-button-big"
{% if course.enrolled? %}

View File

@ -5,3 +5,10 @@
</div>
</div>
{% endif %}
<style>
.np-alert {
background-color: #9E7CFF;
color: white;
}
</style>

View File

@ -5,6 +5,7 @@
data-toggle-class-on-target="np-popup-tooltip--visible"
data-toggle-target-parent=".np-popup-tooltip"
data-toggle-outside
style="color:#9E7CFF; z-index:7"
></i>
<div
class="np-popup-tooltip"

View File

@ -135,6 +135,7 @@
{% endif %}
</div>
{% include 'my_courses_filter' %}
{% include "course_version_outdated_alert", courses: courses.in_catalog %}
</header>
<div class="np-hidden-desktop">

View File

@ -1,6 +1,5 @@
{% include "header" %}
<main class="np-main np-catalog np-subpage-container np-max-width">
{% include "course_version_outdated_alert", courses: courses.in_catalog %}
<div class="np-catalog-header-wrapper">
<div class="np-catalog-header">
<div>

View File

@ -8,7 +8,7 @@
{% endif %}
<main class="np-main np-dashboard np-subpage-container np-max-width">
{% include "course_version_outdated_alert", courses: courses.enrolled %}
{% comment %} {% include "course_version_outdated_alert", courses: courses.enrolled %} {% endcomment %}
<div class="row np-flex-center">
<div class="col-xs-12 {% if features.training_events? %} col-sm-8 {% endif %}">
{% if features.learning_paths? %}
@ -80,6 +80,9 @@
</script>
<style>
.np-flex-center {
padding-top: 20px;
}
.np-dashboard {
padding-top: 183px;
}

View File

@ -29,10 +29,10 @@ body, .np-main {
padding-top: 123px;
}
}
/*
.np-alert {
margin: 20px 0;
}
}*/
/* Course Cards */