Center post-match status and use singular for one recorded game (by Codex)

This commit is contained in:
Codex authored and Codex committed 2026-10-27 09:48:47 +01:00
1 parent 5807db67bf
commit 28f51dabbc
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -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") +