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/Leaderboard.svelte | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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

diff --git a/web/pw-server/src/lib/components/Leaderboard.svelte b/web/pw-server/src/lib/components/Leaderboard.svelte
index 75e4807..8582198 100644
--- a/web/pw-server/src/lib/components/Leaderboard.svelte
+++ b/web/pw-server/src/lib/components/Leaderboard.svelte
@@ -44,7 +44,8 @@
         <td class="leaderboard-bot">{entry["bot"]["name"]}</td>
         <td class="leaderboard-author">
           {#if entry["author"]}
-            {entry["author"]["username"]}
+          <!-- TODO: remove duplication -->
+            <a href="/users/{entry["author"]["username"]}">{entry["author"]["username"]}</a>
           {/if}
         </td>
       </tr>
@@ -69,4 +70,9 @@
   .leaderboard-rank {
     color: #333;
   }
+
+  .leaderboard-author a{
+    text-decoration: none;
+    color: black;
+  }
 </style>
-- 
cgit v1.2.3

