Display different status of games
Dependencies
- [2]
AMBIOSDGAdd info about status of the game - [3]
DNFB7TNIAdd new pages and links to slow games and reset game password - [4]
3GGMBQ2NUpdate dependencies and add list of slow games - [*]
OJO4B4QOAdd login form and empty handler - [*]
HTYEGVBUAdd data to reset password page
Change contents
- replacement in src/templates/slow-games.html at line 25
<li>{{ game.gameuid }}</li><li class={{#if game.status}}{{#if (eq game.status "started")}}"game-status-started"{{else}}"game-status-finished"{{/if}}{{else}}"game-status-prepared"{{/if}}>{{ game.gameuid }}</li> - edit in src/pages/slow_games.rs at line 16
status: Option<String>, - replacement in src/pages/slow_games.rs at line 51
let _status = row.get::<_, Option<&str>>(1);let status = row.get::<_, Option<&str>>(1); - edit in src/pages/slow_games.rs at line 56
status: status.map(str::to_string), - edit in public/style.css at line 15[7.2574][6.1035]
}li.game-status-prepared {list-style-type: none; - edit in public/style.css at line 21[6.1038]
li.game-status-started {list-style-type: disc;}li.game-status-finished {list-style-type: circle;}