Show slow game's status and notes
Dependencies
Change contents
- replacement in src/templates/slow-game.html at line 16
<dd></dd><dd>{{#if status}}{{#if (eq status "started")}}Started{{else}}Finished{{/if}}{{else}}Prepared{{/if}}</dd>{{#if notes_html}} - replacement in src/templates/slow-game.html at line 29
<dd></dd><dd>{{ notes_html }}</dd>{{/if}} - edit in src/pages/slow_game.rs at line 11
status: Option<&'a str>,notes_html: Option<&'a str>, - replacement in src/pages/slow_game.rs at line 31
let stmt = match dbclient.prepare("select g.status, g.notes_html, g.fo_forum_url, (select count(*) from games.players p where p.game_uid = g.game_uid and p.client_type = 'p'), MIN(t.turn_ts), MAX(t.turn_ts), COUNT(t.turn) from games.games g left join games.turns t on t.game_uid = g.game_uid where g.game_uid = $1 group by g.game_uid;").await {let stmt = match dbclient.prepare("select g.status::text, g.notes_html, g.fo_forum_url, (select count(*) from games.players p where p.game_uid = g.game_uid and p.client_type = 'p'), MIN(t.turn_ts), MAX(t.turn_ts), COUNT(t.turn) from games.games g left join games.turns t on t.game_uid = g.game_uid where g.game_uid = $1 group by g.game_uid;").await { - replacement in src/pages/slow_game.rs at line 45
let _row = match rows {let row = match rows { - edit in src/pages/slow_game.rs at line 58
status: row.get::<_, Option<&str>>(0),notes_html: row.get::<_, Option<&str>>(1),