diff --git a/cara/apps/calculator/__init__.py b/cara/apps/calculator/__init__.py index c231f2e3..b91cafb2 100644 --- a/cara/apps/calculator/__init__.py +++ b/cara/apps/calculator/__init__.py @@ -53,7 +53,7 @@ class LandingPage(RequestHandler): import jinja2 p = Path(__file__).parent.parent / "templates" env = jinja2.Environment(loader=jinja2.FileSystemLoader(Path(p))) - template = env.get_template("layout.html.j2") + template = env.get_template("index.html.j2") report = template.render(**{}) self.finish(report) diff --git a/cara/apps/calculator/templates/calculator.form.html.j2 b/cara/apps/calculator/templates/calculator.form.html.j2 index f72d89cc..df4ccb91 100644 --- a/cara/apps/calculator/templates/calculator.form.html.j2 +++ b/cara/apps/calculator/templates/calculator.form.html.j2 @@ -1,5 +1,7 @@ {% extends "layout.html.j2" %} +{% set CALCULATOR_ACTIVE=1 %} + {% block extra_headers %} diff --git a/cara/apps/templates/index.html.j2 b/cara/apps/templates/index.html.j2 new file mode 100644 index 00000000..e4278a43 --- /dev/null +++ b/cara/apps/templates/index.html.j2 @@ -0,0 +1,38 @@ +{% extends "layout.html.j2" %} +{% set HOME_ACTIVE=1 %} + + {% block main %} +