From 33664eff2c93136658b7f863c95e1bfda91141ee Mon Sep 17 00:00:00 2001
From: Ilion Beyst <ilion.beyst@gmail.com>
Date: Sun, 24 Jul 2022 15:15:09 +0200
Subject: basic user profile pages

---
 web/pw-server/src/lib/components/navbar/UserControls.svelte | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'web/pw-server/src/lib/components/navbar/UserControls.svelte')

diff --git a/web/pw-server/src/lib/components/navbar/UserControls.svelte b/web/pw-server/src/lib/components/navbar/UserControls.svelte
index 0b8413d..a9bd87b 100644
--- a/web/pw-server/src/lib/components/navbar/UserControls.svelte
+++ b/web/pw-server/src/lib/components/navbar/UserControls.svelte
@@ -36,9 +36,9 @@
 
 <div class="user-controls">
   {#if $currentUser}
-    <div class="current-user-name">
-      {$currentUser["username"]}
-    </div>
+    <a class="current-user-name" href="/users/{$currentUser["username"]}">
+        {$currentUser["username"]}
+    </a>
     <div class="sign-out" on:click={signOut}>Sign out</div>
   {:else}
     <a class="account-href" href="login">Sign in</a>
@@ -61,6 +61,7 @@
 
   .current-user-name {
     @include navbar-item;
+    text-decoration: none;
     color: #fff;
   }
 
-- 
cgit v1.2.3

