From 23330a29a70d127d513cbe22a0fca000345ec768 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Tue, 24 Jan 2023 19:24:57 +0530 Subject: [PATCH] feat: port base component to tera --- .../components/{base/top.html => base.html} | 38 ++++++++++++------- templates/components/base/bottom.html | 2 - 2 files changed, 25 insertions(+), 15 deletions(-) rename templates/components/{base/top.html => base.html} (72%) delete mode 100644 templates/components/base/bottom.html diff --git a/templates/components/base/top.html b/templates/components/base.html similarity index 72% rename from templates/components/base/top.html rename to templates/components/base.html index 2447fc0..305a332 100644 --- a/templates/components/base/top.html +++ b/templates/components/base.html @@ -3,13 +3,24 @@ - <.= PAGE .> | <.= crate::pages::NAME .> - + + {% set title = page_title ~ " | " ~ "mCaptcha Survey" %} + {{ title }} + + + + @@ -23,24 +34,18 @@ - + - + + - - + + +
{% block nav %} {% endblock nav %}
+{% block body %} {% endblock body %} +{% include "footer" %} + + + diff --git a/templates/components/base/bottom.html b/templates/components/base/bottom.html deleted file mode 100644 index e82434c..0000000 --- a/templates/components/base/bottom.html +++ /dev/null @@ -1,2 +0,0 @@ - -