aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/pw-server/src/lib')
-rw-r--r--web/pw-server/src/lib/components/Leaderboard.svelte14
-rw-r--r--web/pw-server/src/lib/components/navbar/UserControls.svelte4
2 files changed, 12 insertions, 6 deletions
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 @@
<td class="leaderboard-rating">
{formatRating(entry)}
</td>
- <td class="leaderboard-bot">{entry["bot"]["name"]}</td>
+ <td class="leaderboard-bot">
+ <a class="leaderboard-href" href="/bots/{entry['bot']['name']}"
+ >{entry["bot"]["name"]}
+ </a></td
+ >
<td class="leaderboard-author">
{#if entry["author"]}
- <!-- TODO: remove duplication -->
- <a href="/users/{entry["author"]["username"]}">{entry["author"]["username"]}</a>
+ <!-- TODO: remove duplication -->
+ <a class="leaderboard-href" href="/users/{entry['author']['username']}"
+ >{entry["author"]["username"]}</a
+ >
{/if}
</td>
</tr>
@@ -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 @@
<div class="user-controls">
{#if $currentUser}
- <a class="current-user-name" href="/users/{$currentUser["username"]}">
- {$currentUser["username"]}
+ <a class="current-user-name" href="/users/{$currentUser['username']}">
+ {$currentUser["username"]}
</a>
<div class="sign-out" on:click={signOut}>Sign out</div>
{:else}