mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
34 lines
959 B
Elixir
34 lines
959 B
Elixir
<div data-game-id="<%= @game.id %>">
|
|
<div class="game-grid">
|
|
<%= live_render(
|
|
@conn,
|
|
ChessWeb.BoardLive,
|
|
session: %{"user_id" => current_user(@conn).id, "game_id" => @game.id}
|
|
) %>
|
|
|
|
<%= live_render(
|
|
@conn,
|
|
ChessWeb.GameInfoLive,
|
|
session: %{"user_id" => current_user(@conn).id, "game_id" => @game.id}
|
|
) %>
|
|
|
|
<div class="move-list">
|
|
<table class="table table--condensed">
|
|
<thead>
|
|
<tr>
|
|
<th class="move-list__line-number"><span class="visually-hidden">Move no.</span></th>
|
|
<th class="move-list__header--white">White</th>
|
|
<th class="move-list__header--black">Black</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row" class="move-list__line-number">1.</th>
|
|
<td class="move-list__move move-list__move--white">e4</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|