{#if !$locales.includes('en') || !$locale().navigation} {#if data.url === '/settings'} {:else} {/if} {:else}
{$locale().navigation.home} {$locale().navigation.completed} {$locale().navigation.schedule} {$locale().navigation.tools} {$locale().navigation.settings} {#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} > {$locale().navigation.profile} {/if} {#if data.user === undefined} { await localforage.setItem( 'redirect', window.location.origin + window.location.pathname + window.location.search ); }} > {$locale().navigation.logIn} {:else if data.user} Avatar {/if}
{#if $userIdentity.id !== -1} {:else if data.url === '/settings'} {:else} {/if}
{/if}