Keep saved national coach labels independent of the current viewer (by Codex)
This commit is contained in:
1 parent
9dd8731c66
commit
4903e79476
2 files changed
+16
-1
No files matched your search
@@ -49,7 +49,7 @@ std::string App::files_details(bool layouts, bool save) {
|
||||
out += "</div><section class=\"files-managers\"><h3>Mitspieler</h3>";
|
||||
for (const auto &manager : managers) {
|
||||
const auto *managed = world_->find("clubs", manager.value("club", ""));
|
||||
out += "<div><strong>" + esc(manager.value("name", "")) + "</strong><span>" + esc(managed ? world_->name(*managed) : "") + "</span></div>";
|
||||
out += "<div><strong>" + esc(manager.value("name", "")) + "</strong><span>" + esc(meta.at("role")=="national"&&manager.value("portrait",0)==meta.at("current_manager").value("portrait",0)?"Deutschland":managed ? world_->name(*managed) : "") + "</span></div>";
|
||||
}
|
||||
return out + "</section><p class=\"files-timestamp\">" + (fresh ? "Diese Angaben werden mit dem Spielstand gespeichert." : "Gespeichert am " + esc(files_entry_->created) + "<br/>Geändert am " + esc(files_entry_->modified) + " · " + std::to_string(files_entry_->bytes) + " Bytes") + "</p>";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user