condense scoreboard

This commit is contained in:
Adam 2024-09-04 17:20:22 -04:00
parent 177fec75b7
commit 71bd306ffb

View file

@ -28,7 +28,6 @@ fn Scoreboard() -> impl IntoView {
<th></th> <th></th>
<th></th> <th></th>
<th>"Score"</th> <th>"Score"</th>
<th></th>
</tr> </tr>
</thead> </thead>
{game_meta() {game_meta()
@ -41,8 +40,10 @@ fn Scoreboard() -> impl IntoView {
<td> <td>
{if game_meta().unwrap().czar == player.name { {if game_meta().unwrap().czar == player.name {
"👑" "👑"
} else if player.submitted {
"🟢"
} else { } else {
"" ""
}} }}
</td> </td>
<td> <td>
@ -53,7 +54,6 @@ fn Scoreboard() -> impl IntoView {
}} {player.name} }} {player.name}
</td> </td>
<td class="text-center">{player.score}</td> <td class="text-center">{player.score}</td>
<td>{if player.submitted { "🟢" } else { "" }}</td>
</tr> </tr>
} }
}) })