summaryrefslogtreecommitdiff
path: root/views
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
parent11944e43b67c079ccb1ec398e468b2d774b9ec40 (diff)
downloadserver-f8aaf2a6f573b15777601c38513d9a7c869f1462.tar.gz
Rewrite is_your_turn SQL statements.
Now they should work in all lobby views.
Diffstat (limited to 'views')
-rw-r--r--views/games.ejs3
-rw-r--r--views/info.ejs2
2 files changed, 2 insertions, 3 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>
-
diff --git a/views/info.ejs b/views/info.ejs
index fdfc974..778974e 100644
--- a/views/info.ejs
+++ b/views/info.ejs
@@ -38,7 +38,7 @@ Read more about the game on
<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>
<% }); %>
</table>