"
"
";
for (const auto &[key, label] :
std::array
, 2>{
{{"rank", "Pl. / Verein"}, {"points", "Punkte"}}}) {
const bool current = sort.at("key") == key;
const bool descending = sort.at("desc").get();
std::string indicator = "";
if (!current || !descending)
indicator += "";
if (!current || descending)
indicator += "";
indicator += "";
body += "" +
btn("report-sort", "" + esc(label) + "" + indicator,
"report-sort", "id=\"report-sort-" + key + "\" data-id=\"" + key +
"\" aria-label=\"Nach " + esc(label) + " sortieren\"") + "
";
}
body += "";
for (size_t i = 0; i < rows.size(); ++i) {
const auto &row = rows[i];
body += "
()) +
"\">
"
"" +
std::to_string(row.at("rank").get()) + "." +
report_club_button(row.at("club").get()) +
"
"
"" + std::to_string(row.at("points").get()) +
"
";
}
body += "