A club's card with its parts, its place in the table and its best players

The card fetches the squad when it opens and lists the five strongest players, each
leading to the player's card. Facts nobody knows about another club are left out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-14 18:54:51 +01:00
1 parent eec7f40a52
commit 7e161ca505
3 files changed
+74 -3

No files matched your search

+5 -1
View File
@@ -131,7 +131,11 @@ std::string report_player_card(const std::string &portrait, const std::string &c
out += "</div></div>";
}
if (!any) out += "<p class=\"player-card-none\">Für diesen Spieler liegen keine Einzelwerte vor.</p>";
out += "</div><div class=\"player-card-facts\"><h3>Vertrag und Status</h3>" + report_detail_fields(facts, 64) + "</div>";
out += "</div><div class=\"player-card-facts\"><h3>Vertrag und Status</h3>";
// a fact nobody knows (another club's contract) is left out
std::vector<std::pair<std::string, std::string>> known;
for (const auto &fact : facts) if (fact.second != "—") known.push_back(fact);
out += report_detail_fields(known, 64) + "</div>";
return out;
}
} // namespace