Upgraded a bunch of clients to v3 - Cin7 mostly for this repo, but Headway and Skan as well. Found two bugs.

This commit is contained in:
Norm Rasmussen
2024-11-22 15:16:18 -05:00
parent 97fb6a82e7
commit e398b90135
363 changed files with 234 additions and 120 deletions

View File

@ -0,0 +1,30 @@
<nav class="sub-navigation">
<div class="np-sub-navigation-content">
{% for link in navigations.sub_navigation %}
<div class="np-sub-navigation-content-item">
{% if link.label == 'Catalog' %}
<a class="np-sub-navigation-content-item-link {{ link.active_class }}" id='courses-category' href="/app/courses-category">
{{ link.label }}
</a>
{%else%}
<a class="np-sub-navigation-content-item-link {{ link.active_class }}" href="{{ link.url }}">
{{ link.label }}
</a>
{% endif %}
</div>
{% endfor %}
</div>
</nav>
<script>
document.addEventListener("DOMContentLoaded", () => {
let link = document.getElementById('courses-category');
if (window.location.pathname == '/app/courses-category') {
link.classList.add("np-sub-navigation-content-item-active");
} else {
link.classList.remove("np-sub-navigation-content-item-active");
}
});
</script>