From 4d7bdc955a2e6dd2c222f985c7fbc9b4febbccc4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 13 Oct 2024 12:48:48 +0200 Subject: Tournaments! --- public/join.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'public/join.js') diff --git a/public/join.js b/public/join.js index 75e7aca..b2c667f 100644 --- a/public/join.js +++ b/public/join.js @@ -327,13 +327,19 @@ function create_game_list() { let table = create_element(window.game_info, "table") let list = create_element(table, "tbody") - if (game.scenario !== "Standard") - create_game_list_item(list, "Scenario", game.scenario) - create_game_list_item(list, "Options", format_options(game.options)) + if (game.pool_name) { + create_game_list_item(list, "Tournament", `${game.pool_name}`) + } else { + if (game.scenario !== "Standard") + create_game_list_item(list, "Scenario", game.scenario) + create_game_list_item(list, "Options", format_options(game.options)) + } + if (game.pace > 0) create_game_list_item(list, "Pace", PACE_TEXT[game.pace]) - create_game_list_item(list, "Notice", game.notice) + if (!game.pool_name) + create_game_list_item(list, "Notice", game.notice) if (game.status === 0) { if (game.owner_id) -- cgit v1.2.3