From ccfe86729e3a454e3fdf529abd7063ceb8fa859f Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 24 Jul 2022 16:45:29 +0200 Subject: add bot detail page --- web/pw-server/src/lib/components/Leaderboard.svelte | 14 ++++++++++---- .../src/lib/components/navbar/UserControls.svelte | 4 ++-- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'web/pw-server/src/lib/components') diff --git a/web/pw-server/src/lib/components/Leaderboard.svelte b/web/pw-server/src/lib/components/Leaderboard.svelte index 8582198..d29d5d6 100644 --- a/web/pw-server/src/lib/components/Leaderboard.svelte +++ b/web/pw-server/src/lib/components/Leaderboard.svelte @@ -41,11 +41,17 @@ {formatRating(entry)} - {entry["bot"]["name"]} + + {entry["bot"]["name"]} + {#if entry["author"]} - - {entry["author"]["username"]} + + {entry["author"]["username"]} {/if} @@ -71,7 +77,7 @@ color: #333; } - .leaderboard-author a{ + .leaderboard-href { text-decoration: none; color: black; } diff --git a/web/pw-server/src/lib/components/navbar/UserControls.svelte b/web/pw-server/src/lib/components/navbar/UserControls.svelte index a9bd87b..5646982 100644 --- a/web/pw-server/src/lib/components/navbar/UserControls.svelte +++ b/web/pw-server/src/lib/components/navbar/UserControls.svelte @@ -36,8 +36,8 @@
{#if $currentUser} - - {$currentUser["username"]} + + {$currentUser["username"]}
Sign out
{:else} -- cgit v1.2.3