diff --git a/atst/app.py b/atst/app.py index 99279958..be750c1b 100644 --- a/atst/app.py +++ b/atst/app.py @@ -62,11 +62,6 @@ def make_app(config): def make_flask_callbacks(app): @app.before_request def _set_globals(): - g.navigationContext = ( - "workspace" - if re.match("\/workspaces\/[A-Za-z0-9]*", request.path) - else "global" - ) g.dev = os.getenv("FLASK_ENV", "dev") == "dev" g.matchesPath = lambda href: re.match("^" + href, request.path) g.modal = request.args.get("modal", None) diff --git a/templates/base.html b/templates/base.html index 3f5125ce..bbb49fe5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,7 +1,3 @@ -{# TODO: set this context elsewhere #} -{# set context='workspace' #} -{% set context=g.navigationContext %} -
diff --git a/templates/error_base.html b/templates/error_base.html index a9d8c0de..5ef0878d 100644 --- a/templates/error_base.html +++ b/templates/error_base.html @@ -1,7 +1,3 @@ -{# TODO: set this context elsewhere #} -{# set context='workspace' #} -{% set context=g.navigationContext %} - diff --git a/templates/navigation/global_navigation.html b/templates/navigation/global_navigation.html index b2311665..4b259e2b 100644 --- a/templates/navigation/global_navigation.html +++ b/templates/navigation/global_navigation.html @@ -1,6 +1,6 @@ {% from "components/sidenav_item.html" import SidenavItem %} -