diff options
Diffstat (limited to 'views/games.ejs')
-rw-r--r-- | views/games.ejs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/views/games.ejs b/views/games.ejs index acb94b6..3b3f485 100644 --- a/views/games.ejs +++ b/views/games.ejs @@ -31,7 +31,11 @@ <td class="description"><%= row.description %> <td class="time"><%= row.mtime %> <td class="role <%= row.is_active ? "is_active" : "" %>"><%= row.active %> +<% if (row.is_yours) { %> <td class="command"><a href="/join/<%= row.game_id %>">Enter</a> +<% } else { %> +<td class="command"><a href="/play/<%- row.game_id %>/Observer">View</a> +<% } %> <% }); } else { %> <tr><td colspan="8">No active games. <% } %> |