A ton of updates for Cin7's templates for multi-product people. Finished the first half of the mass-delete script for Sandata.
This commit is contained in:
@ -1,15 +1,20 @@
|
||||
{% assign omni = false %}
|
||||
{% assign core = false %}
|
||||
{% assign partners = false %}
|
||||
{% assign log_out = true %}
|
||||
|
||||
{% if current_person.signed_in? %}
|
||||
{% assign log_out = false %}
|
||||
{% for group in current_person.groups %}
|
||||
{% if group.name contains 'Core' %}
|
||||
{% assign core = true %}
|
||||
{% elsif group.name contains 'Omni' %}
|
||||
{% assign omni = true %}
|
||||
{% endif %}
|
||||
{% if group.name contains 'Partners' %}
|
||||
{% assign partners = true %}
|
||||
{% else %}
|
||||
{% if group.name contains 'Core' %}
|
||||
{% assign core = true %}
|
||||
{% elsif group.name contains 'Omni' %}
|
||||
{% assign omni = true %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
@ -43,7 +48,7 @@
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const categoriesFromURL = urlParams.getAll('category');
|
||||
if (categoriesFromURL.length === 0) {
|
||||
return;
|
||||
return;
|
||||
}
|
||||
const cards = document.querySelectorAll('.lp-card');
|
||||
|
||||
@ -55,9 +60,9 @@
|
||||
const filterCards = () => {
|
||||
cards.forEach(card => {
|
||||
if (cardMatchesCategories(card, categoriesFromURL)) {
|
||||
card.style.display = 'block';
|
||||
card.style.display = 'block';
|
||||
} else {
|
||||
card.style.display = 'none';
|
||||
card.style.display = 'none';
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user