finished workflow for sandata - even though they cancelled the launch! Worked on Anthology's group based course extractions.
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user