Cin7 templates - missed something in the cataloggit status Anthology bulk knowledgestate fix.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
{% endcomment %}
|
||||
|
||||
{% if log_out %}
|
||||
<script>window.location.replace('/app')</script>
|
||||
<script>window.location.replace('/app/learners/sign_in')</script>
|
||||
{% endif %}
|
||||
|
||||
<div class="np-card-container">
|
||||
|
||||
@ -1,11 +1,9 @@
|
||||
{% if courses.in_catalog.any? %}
|
||||
<div class=" row">
|
||||
{% for course in courses.in_catalog %}
|
||||
{% if current_person.signed_in? %}
|
||||
<div class="col-xs-12 col-md-6 col-lg-4 np-stretch-content">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
|
||||
@ -1,21 +1,7 @@
|
||||
{% 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 '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 %}
|
||||
|
||||
<footer class="np-footer">
|
||||
|
||||
@ -1,21 +1,7 @@
|
||||
{% 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 '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 %}
|
||||
|
||||
<header class="np-header np-header-color">
|
||||
@ -243,6 +229,7 @@
|
||||
}
|
||||
</style>
|
||||
|
||||
{%- comment -%}
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var searchIcon = document.getElementById("search-icon");
|
||||
@ -265,3 +252,4 @@
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{%- endcomment -%}
|
||||
|
||||
@ -594,4 +594,4 @@ body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
{% assign lang = current_person.properties.language %}
|
||||
|
||||
{% case lang %}
|
||||
{% when "es" %}
|
||||
{% include "spanish_lang" %}
|
||||
{% when "fr" %}
|
||||
{% include "french_canadian_lang" %}
|
||||
{% endcase %}
|
||||
|
||||
|
||||
@ -20,14 +20,14 @@ function setLang(lang) {
|
||||
if (localStorage.getItem('language') == null || localStorage.getItem('language') != lang) {
|
||||
localStorage.setItem('language', lang)
|
||||
}
|
||||
|
||||
|
||||
var data = {
|
||||
uuid : '{{current_person.id}}',
|
||||
language : lang
|
||||
};
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : 'https://webhooks.workato.com/webhooks/rest/06186897-993c-458b-a8e6-394db4151bd0/langchange',
|
||||
url: 'https://webhooks.workato.com/webhooks/rest/06186897-993c-458b-a8e6-394db4151bd0/langchange-luminate-canada',
|
||||
data: JSON.stringify(data),
|
||||
success:function (data) {
|
||||
console.log(data);
|
||||
@ -39,7 +39,7 @@ function setLang(lang) {
|
||||
});
|
||||
}
|
||||
|
||||
/* When the user clicks on the button,
|
||||
/* When the user clicks on the button,
|
||||
toggle between hiding and showing the dropdown content */
|
||||
function myFunction() {
|
||||
document.getElementById("myDropdown").classList.toggle("show");
|
||||
|
||||
@ -20,9 +20,8 @@ function setLang(lang) {
|
||||
if (localStorage.getItem('language') == null || localStorage.getItem('language') != lang) {
|
||||
localStorage.setItem('language', lang)
|
||||
}
|
||||
|
||||
var data = {
|
||||
uuid : '{{current_person.id}}',
|
||||
uuid : '{{current_person.id}}',
|
||||
language : lang
|
||||
};
|
||||
$.ajax({
|
||||
@ -39,7 +38,7 @@ function setLang(lang) {
|
||||
});
|
||||
}
|
||||
|
||||
/* When the user clicks on the button,
|
||||
/* When the user clicks on the button,
|
||||
toggle between hiding and showing the dropdown content */
|
||||
function myFunction() {
|
||||
document.getElementById("myDropdown").classList.toggle("show");
|
||||
|
||||
Reference in New Issue
Block a user