{#if !$locales.includes('en') || !$locale().navigation} {#if data.url === '/settings'} {:else} {/if} {:else}
{executiveCopy($aprilFools, $locale().navigation.home)} {executiveCopy($aprilFools, $locale().navigation.completed)} {executiveCopy($aprilFools, $locale().navigation.schedule)} {executiveCopy($aprilFools, $locale().navigation.tools)} {executiveCopy($aprilFools, $locale().navigation.settings)} {#if aprilFoolsVisible()} { event.preventDefault(); toggleExecutiveMode(); }} title={$aprilFools ? 'Disable Executive Mode' : 'Enable Executive Mode'} > Executive {$aprilFools ? 'On' : 'Off'} {/if} {#if data.user} { await localforage.removeItem('identity'); await localforage.removeItem('commit'); document.cookie = 'user=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; window.location.href = root('/api/authentication/log-out'); } } ]} header={false} > {executiveCopy($aprilFools, $locale().navigation.profile)} {/if} {#if data.user === undefined} { await localforage.setItem( 'redirect', window.location.origin + window.location.pathname + window.location.search ); }} > {executiveCopy($aprilFools, $locale().navigation.logIn)} {:else if data.user} Avatar {/if}
{#if $userIdentity.id !== -1} {:else if data.url === '/settings'} {:else} {/if}
{/if}