aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/components/Leaderboard.svelte
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-24 15:15:09 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-24 15:15:42 +0200
commit33664eff2c93136658b7f863c95e1bfda91141ee (patch)
treeacda060d878b557e58db042a3bb30ff4212c17b1 /web/pw-server/src/lib/components/Leaderboard.svelte
parent4a582e8079178a7ac11f2a492e7988fcdaa210cd (diff)
downloadplanetwars.dev-33664eff2c93136658b7f863c95e1bfda91141ee.tar.xz
planetwars.dev-33664eff2c93136658b7f863c95e1bfda91141ee.zip
basic user profile pages
Diffstat (limited to 'web/pw-server/src/lib/components/Leaderboard.svelte')
-rw-r--r--web/pw-server/src/lib/components/Leaderboard.svelte8
1 files changed, 7 insertions, 1 deletions
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>