Carry the match day's score board into the review; minutes on the time line; depth on the desk
- The review after a match opens with the score board of the stage at its final whistle. - The time line names its quarter hours; the repeated status under a running match is gone. - Desk: cards and tiles cast a shadow and answer the pointer, the bar carries the club's colour along its foot, the club's name is set in the display serif. - Settings: themes are called Mitternacht, Papier and Spieltag; two filler lines removed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
3a3513fb60
commit
9b33e1f8c1
7 files changed
+42
-15
No files matched your search
@@ -268,7 +268,7 @@ std::string App::render_postmatch() {
|
||||
"<section id=\"postmatch-underlay\" class=\"postmatch\"><header "
|
||||
"class=\"postmatch-heading\"><div><p>" +
|
||||
live_text(selected.at("competition").get<std::string>() + " · " +
|
||||
postmatch_data_.at("date").get<std::string>()) +
|
||||
ui_long_date(postmatch_data_.at("date").get<std::string>())) +
|
||||
"</p><h2 id=\"postmatch-heading\" tabindex=\"-1\">" +
|
||||
live_text(postmatch_label(postmatch_tab_)) + "</h2></div>";
|
||||
if (postmatch_data_.at("role") == "club" &&
|
||||
@@ -305,6 +305,13 @@ std::string App::render_postmatch() {
|
||||
"role=\"tabpanel\" aria-labelledby=\"postmatch-tab-" +
|
||||
postmatch_tab_ + "\">";
|
||||
if (postmatch_tab_ == "results") {
|
||||
// the score board of the match day's stage, at its final whistle
|
||||
if (live_.available())
|
||||
for (const auto &played : live_.fixture().at("matches"))
|
||||
if (played.at("home").at("id") == selected.at("home").at("id") && played.at("away").at("id") == selected.at("away").at("id")) {
|
||||
try { body += "<div class=\"postmatch-stage\">" + live_card(played, live_.frame(), "solo", 0) + "</div>"; } catch (const std::exception &) {}
|
||||
break;
|
||||
}
|
||||
body += "<div class=\"postmatch-results-head\">" +
|
||||
live_text("Heim", "home") + live_text("Ergebnis", "score") +
|
||||
live_text("Auswärts", "away") +
|
||||
|
||||
Reference in new issue
Block a user