aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/routes
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-03-11 00:47:14 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-03-11 00:47:14 +0100
commita1d7760b720d7cc37b89fc5c39de8ae20f7e2c50 (patch)
treeec3c3ed2563e00b87dd3d36f3b6a9e14b5badc11 /web/pw-server/src/routes
parent63695c299c023bd61d2a45cc22e509ac3717ec8d (diff)
downloadplanetwars.dev-a1d7760b720d7cc37b89fc5c39de8ae20f7e2c50.tar.xz
planetwars.dev-a1d7760b720d7cc37b89fc5c39de8ae20f7e2c50.zip
show opponent name in match list
Diffstat (limited to 'web/pw-server/src/routes')
-rw-r--r--web/pw-server/src/routes/index.svelte10
1 files changed, 8 insertions, 2 deletions
diff --git a/web/pw-server/src/routes/index.svelte b/web/pw-server/src/routes/index.svelte
index a78c1ea..9b817d4 100644
--- a/web/pw-server/src/routes/index.svelte
+++ b/web/pw-server/src/routes/index.svelte
@@ -134,8 +134,10 @@
class:selected={match.id === selectedMatchId}
>
<span class="match-timestamp">{formatMatchTimestamp(match.timestamp)}</span>
- <!-- hardcode hex for now, maps are not yet implemented -->
- <span class="match-mapname">hex</span>
+ <!-- hex is hardcoded for now, don't show map name -->
+ <!-- <span class="match-mapname">hex</span> -->
+ <!-- ugly temporary hardcode -->
+ <span class="match-opponent">{match["players"][1]["bot_name"]}</span>
</li>
{/each}
</ul>
@@ -237,6 +239,10 @@
padding: 0 0.5em;
}
+ .match-opponent {
+ padding: 0 0.5em;
+ }
+
.sidebar-header {
margin-top: 2em;
text-transform: uppercase;