Center post-match status and use singular for one recorded game (by Codex)
This commit is contained in:
1 parent
5807db67bf
commit
28f51dabbc
2 files changed
+4
-3
No files matched your search
@@ -370,7 +370,7 @@ std::string App::render_postmatch() {
|
||||
const int games = total.at("games");
|
||||
body +=
|
||||
"</div><p>" +
|
||||
live_text(std::to_string(games) + " aufgezeichnete Partien · " +
|
||||
live_text(std::to_string(games) + (games == 1 ? " aufgezeichnete Partie · " : " aufgezeichnete Partien · ") +
|
||||
(games ? scalar(double(total.at("goals").get<int>()) / games)
|
||||
: "—") +
|
||||
" Tore pro Partie") +
|
||||
|
||||
Reference in new issue
Block a user