feat(ui): UI now shows player names instead of their id

This commit is contained in:
2025-10-23 08:15:57 +02:00
parent ccf44ede41
commit e213c0706b
6 changed files with 10 additions and 264 deletions

View File

@@ -1,11 +1,11 @@
@(toRender: List[String])
@(sessions: List[controllers.sessions.PlayerSession])
@main("Sessions") {
<div id="sessions">
<h1>Knockout Whist sessions</h1>
<p>Please select your session to jump inside the game!</p>
@for(line <- toRender) {
<a href="@routes.HomeController.ingame(line)">@line</a><br>
@for(session <- sessions) {
<a href="@routes.HomeController.ingame(session.id.toString)">@session.name</a><br>
}
</div>
}