Port scoped National UI routes and isolated dummy planning (by Codex)

This commit is contained in:
Codex authored and Codex committed 2026-10-27 05:07:23 +01:00
1 parent 4fddecb06e
commit 1eb5e99847
19 files changed
+1075 -8

No files matched your search

+3 -1
View File
@@ -167,7 +167,9 @@ std::string App::render_menu(const std::string &key) {
if (key == "news")
return "<div class=\"fill\" style=\"z-index:100;\">" + render_news() + "</div>";
std::string body;
if (key == "tables" || key == "strengths" || key == "league" || key == "other")
if(source_ && snap().state.at("career").value("role","club")=="national" && std::set<std::string>{"achievements","friendlies","scorers"}.contains(key))
body=render_national(key);
else if (key == "tables" || key == "strengths" || key == "league" || key == "other")
body = render_reports(key);
else if (key == "almanac")
body = render_almanac();