From 2f561c28fedd116bb867d748440372255b551478 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Thu, 7 Jan 2021 10:53:32 -0500 Subject: [PATCH] Few rendering fix ups --- lib/chess_web/templates/game/_board.html.eex | 8 ++++---- lib/chess_web/templates/game/show.html.eex | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/chess_web/templates/game/_board.html.eex b/lib/chess_web/templates/game/_board.html.eex index e7c94a5..fa55c3c 100644 --- a/lib/chess_web/templates/game/_board.html.eex +++ b/lib/chess_web/templates/game/_board.html.eex @@ -1,4 +1,4 @@ -
+
1
2
@@ -24,9 +24,9 @@
<%= for file <- 0..7 do %> <%= render "_square.html", - rank: rank, - file: file, - piece: @game.board["#{file},#{rank}"] %> + rank: rank, + file: file, + piece: @game.board["#{file},#{rank}"] %> <% end %>
<% end %> diff --git a/lib/chess_web/templates/game/show.html.eex b/lib/chess_web/templates/game/show.html.eex index 87adea1..2e4b490 100644 --- a/lib/chess_web/templates/game/show.html.eex +++ b/lib/chess_web/templates/game/show.html.eex @@ -2,7 +2,10 @@
<%= render "_board.html", conn: @conn, game: @game %>
-

Playing Zaphod Beeblebrox offline

+

+ Playing <%= opponent(@game, current_user(@conn).id).name %> + offline +