Cin7 templates. Some wonkiness happening with their catalog filters.

This commit is contained in:
Norm Rasmussen
2025-07-01 17:10:37 -04:00
parent eb35f8d073
commit 69cfb846b4
7 changed files with 21 additions and 39 deletions

Binary file not shown.

View File

@ -1,28 +1,7 @@
{% assign log_out = true %}
{% if current_person.signed_in? %}
{% assign log_out = false %}
{% endif %}
{%comment%}
{% unless partners or both_gorups %}
{% if core and course.name contains 'Omni' %}
{% assign redirect = true %}
{% elsif omni and course.name contains 'Core' %}
{% assign redirect = true %}
{% endif %}
{% endunless %}
{% endcomment %}
{% if log_out %}
<script>window.location.replace('/app/learners/sign_in')</script>
{% endif %}
<div class="np-card-container">
<div class="lp-header-container">
<div class="lp-heading lora course-name"> {{ course.name }}</div>
<div class="np-resource-header np-course-header np-card-padding-large">
{% include "course_header" %}
</div>
<div class="np-divider"></div>
<div class="row np-course-content np-card-padding-dynamic">
<div class="col-xs-12 col-sm-6">

View File

@ -4,9 +4,9 @@
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js">
</script>
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js">
</script>
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.css"/>
<!-- Add the slick-theme.css if you want default styling -->
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick-theme.css"/>
@ -38,4 +38,4 @@
removeBadgeShadow();
});
</script>
</script>

View File

@ -229,7 +229,6 @@
}
</style>
{%- comment -%}
<script>
document.addEventListener("DOMContentLoaded", function() {
var searchIcon = document.getElementById("search-icon");
@ -252,4 +251,4 @@
});
});
</script>
{%- endcomment -%}

View File

@ -33,13 +33,15 @@
<a class="np-form-link np-button-color" href="{% route forgot_password_new %}">
{% t .forgot_password %}
</a>
{% comment %}
{% comment %}
{% if features.account_creation? %}
<a class="np-form-link np-button-color" href="{% route sign_up %}">
{% t shared.sign_up %}
</a>
{% endif %}
{% endcomment %}
{% if features.request_access? %}
<a
class="np-form-link np-button-color"
@ -60,3 +62,11 @@
display: flex;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
const hash = window.location.hash;
if (hash === "#invite=true") {
window.location.href = "{% route sign_up %}";
}
});
</script>

View File

@ -1,9 +1,3 @@
{% assign log_out = true %}
{% if current_person.signed_in? %}
{% assign log_out = false %}
{% endif %}
{% include "header" %}
<main class="np-main np-search np-subpage-container np-max-width">
<div class="np-resource-title">
@ -12,13 +6,13 @@
<div class="np-search-header">
<div class="np-resource-subtitle">
{% t .showing %}
{% comment %} <span class="np-resource-subtitle-number">{{ results.count }}</span> {% endcomment %}
<span class="np-resource-subtitle-number">{{ results.count }}</span>
{% t .results_for %}
<span class="np-button-color">"{{ results.term }}"</span>
</div>
</div>
{% if results.items.any? %}
{% render "search_result" for results.items as result %}
{% render "search_result" for results.items as result %}
{% else %}
{% include "search_zero_state" %}
{% endif %}

View File

@ -1 +1 @@
69.121.5.106
98.218.160.230