Port scoped National UI routes and isolated dummy planning (by Codex)
This commit is contained in:
1 parent
4fddecb06e
commit
1eb5e99847
19 files changed
+1075
-8
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user