finished workflow for sandata - even though they cancelled the launch! Worked on Anthology's group based course extractions.

This commit is contained in:
Norm Rasmussen
2024-04-19 16:53:56 -04:00
parent 59e9a4ae2b
commit 88000a824d
13 changed files with 175 additions and 46 deletions

View File

@ -1,3 +1,27 @@
{% if current_person.signed_in? %}
{% unless current_person.email contains "+preview" %}
{% assign groups_count = 0 %}
{% for group in current_person.groups %}
{% assign groups_count = groups_count | plus: 1 %}
{% endfor %}
<script>
const groupsCount = {{groups_count}}
if (groupsCount == 0) {
if (!window.location.href.includes("/invite")) {
console.log("not /invite page")
if (localStorage.getItem('completed-second-registration') != null) {
console.log("Local Storage Item found from Secondary registration")
} else {
window.location.replace('/app/sign-up-follow-up')
}
}
}
</script>
{% endunless %}
{% endif %}
<header class="np-header np-header-color">
<div class="np-header-content">
<div class="np-hidden-desktop np-header-mobile-menu-nav">
@ -189,4 +213,4 @@
align-items: baseline;
}
}
</style>
</style>