From 36d2b84670a096550b03ceb276184ab309b5364a Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 24 Oct 2023 18:09:27 -0700
Subject: feat(layout): profile item navigation

---
 src/routes/+layout.svelte | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'src/routes/+layout.svelte')

diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte
index 19df3f1c..20ae9ef4 100644
--- a/src/routes/+layout.svelte
+++ b/src/routes/+layout.svelte
@@ -52,11 +52,17 @@
 		<p id="desktop-navigation-bar">
 			「 <a href="/">Home</a> • <a href="/completed">Completed</a> •
 			<a href="/updates">Manga & LN Updates</a> •
-			<a href="/tools">Tools</a> • <a href="/settings">Settings</a> 」
+			<a href="/tools">Tools</a> • {#if data.user}
+				<a href={`/user/${currentUserIdentity.name}`}>Profile</a> •
+			{/if} <a href="/settings">Settings</a> 」
 		</p>
 
 		<div id="mobile-navigation-bar">
-			<a href="/">Home</a> • <a href="/completed">Completed</a> • <a href="/tools">Tools</a><br />
+			<a href="/">Home</a> • <a href="/completed">Completed</a> • <a href="/tools">Tools</a>
+			{#if data.user}
+				• <a href={`/user/${currentUserIdentity.name}`}>Profile</a>
+			{/if}
+			<br />
 			<a href="/settings">Settings</a>
 			<a href="/updates">Manga & LN Updates</a>
 
-- 
cgit v1.2.3

