Files
Gainsight/Custom_Templates/customer_templates/ACPA Sandbox v1/_course_header.html.liquid
Norm Rasmussen 2de37ce3bc Tasks.
2025-04-15 14:10:04 -04:00

28 lines
929 B
Plaintext

<div class="np-top-vocabulary np-text-title np-text-muted">
{{ current_school.course_vocabulary }}
<i class="far fa-graduation-cap np-button-color np-learning-path-icon np-hidden-mobile">
</i>
</div>
<div class="np-top-title">
<a href="{% route home %}" class="np-back-button" aria-label="{% t shared.go_back %}">
<i class="far fa-arrow-left np-hidden-mobile np-icon-back"></i>
</a>
{{ course.name }}
</div>
<img
src="{{ course.image_url }}"
class="np-top-image np-hidden-desktop"
alt="{{ course.name }}"
/>
<script>
if (window.location.pathname.includes('learning_paths')) {
window.addEventListener("DOMContentLoaded", function(e) {
let backButton = document.querySelectorAll(".np-back-button");
let learningPathUrl = window.location.pathname.split('/').slice(0,-2).join('/');
backButton.forEach((x)=>{
x.setAttribute("href", learningPathUrl);
})
})
}
</script>