Show label if player could join the game
Dependencies
- [2]
6BDGQ4VMShow player names for registered players - [3]
AEWYJHUDStart to show player list - [4]
6NYILMKIAdd page for slow game - [5]
BVCWJKEXGet auth info for slow game page - [6]
A2LJT7TTShow duration in turns - [7]
LPK5YJ2DShow slow game's status and notes - [8]
G3VK7RIBAdd FreeOrion forum's URL to slow game's - [9]
GUAEZDLEAdd turns info to slow game's page - [10]
C6F7SJZIAdd players count to slow game's page
Change contents
- edit in src/templates/slow-game.html at line 68
{{#if can_join}}<p>Can join</p>{{/if}} - replacement in src/pages/slow_game.rs at line 25
player_list: Option<Vec<PlayerInfo>>,player_list: Option<&'a Vec<PlayerInfo>>,can_join: bool, - replacement in src/pages/slow_game.rs at line 139
Some(users)Some((users, has_itself)) - edit in src/pages/slow_game.rs at line 143
let status = row.get::<_, Option<&str>>(0); - replacement in src/pages/slow_game.rs at line 153
status: row.get::<_, Option<&str>>(0),status, - replacement in src/pages/slow_game.rs at line 160
player_list,player_list: player_list.as_ref().map(|x| &x.0),can_join: player_list.as_ref().map_or(false, |x| !x.1 && status.is_none()),