Skip to content

Commit

Permalink
work on nav
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Nov 17, 2024
1 parent abf4ff6 commit dea19b4
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions src/components/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,13 @@
<a href="/archive">Archive</a>
</div>

<div>
{#if session}
{#if session}
<div>
<span class="email">{email}</span>
<a
href="#"
on:click={() => {
logout();
window.location.href = '/login';
}}><IconLogout /></a
>
{/if}
</div>
{/if}

<div>
<a href="https://taskratchet.com/help" title="Help"><IconHelp /></a>
<a
href="#"
Expand All @@ -49,6 +45,15 @@
rel="noopener"
title="Feedback"><IconFeedback /></a
>
{#if session}
<a
href="#"
on:click={() => {
logout();
window.location.href = '/login';
}}><IconLogout /></a
>
{/if}
</div>
</nav>

Expand Down

0 comments on commit dea19b4

Please sign in to comment.