summaryrefslogtreecommitdiff
path: root/views/games.ejs
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-16 13:15:07 +0200
committerTor Andersson <tor@ccxvii.net>2021-07-16 14:18:36 +0200
commitf8aaf2a6f573b15777601c38513d9a7c869f1462 (patch)
tree93f7a147f2965d277475868bc04a4fb551966f2c /views/games.ejs
parent11944e43b67c079ccb1ec398e468b2d774b9ec40 (diff)
downloadserver-f8aaf2a6f573b15777601c38513d9a7c869f1462.tar.gz
Rewrite is_your_turn SQL statements.
Now they should work in all lobby views.
Diffstat (limited to 'views/games.ejs')
-rw-r--r--views/games.ejs3
1 files changed, 1 insertions, 2 deletions
diff --git a/views/games.ejs b/views/games.ejs
index a355910..e25df1f 100644
--- a/views/games.ejs
+++ b/views/games.ejs
@@ -33,10 +33,9 @@ td.nowrap a { color: black; text-decoration: none; }
<td><%= row.player_names %>
<td><%= row.description %>
<td class="nowrap"><%= row.mtime %>
-<td><%= row.active_role %>
+<td class="<%= row.is_your_turn ? "is_your_turn" : "" %>"><%= row.active_role %>
<td><a href="/join/<%= row.game_id %>">Enter</a>
<% }); } else { %>
<tr><td colspan="8">No active games.
<% } %>
</table>
-