diff --git a/templates/header.html b/templates/base.html similarity index 51% rename from templates/header.html rename to templates/base.html index 8890e3c..01123c0 100644 --- a/templates/header.html +++ b/templates/base.html @@ -1,15 +1,19 @@ - - Your page title - - - - {{ bootstrap.load_css() }} - - - + {% block head %} + + TornActivityTracker{% block title %}{% endblock %} + + + + {% block styles %} + {{ bootstrap.load_css() }} + + + + {% endblock %} + {% endblock %}
@@ -29,4 +33,15 @@
-
\ No newline at end of file +
+ {% block content %} + {% endblock %} + + +
+ {% block scripts %} + {{ bootstrap.load_js() }} + {% endblock %} + + + \ No newline at end of file diff --git a/templates/download_results.html b/templates/download_results.html index ab5c09b..e156439 100644 --- a/templates/download_results.html +++ b/templates/download_results.html @@ -1,5 +1,6 @@ -{% include "header.html" %} +{% extends 'base.html' %} +{% block content %}
@@ -90,4 +91,4 @@ {{ bootstrap.load_js() }} {% endblock %} - {% include "footer.html" %} \ No newline at end of file +{% endblock content %} diff --git a/templates/footer.html b/templates/footer.html deleted file mode 100644 index 4d370db..0000000 --- a/templates/footer.html +++ /dev/null @@ -1,5 +0,0 @@ -
- - - - \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 8a013ab..60a2233 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,4 +1,5 @@ -{% include "header.html" %} +{% extends 'base.html' %} +{% block content %}

Config

@@ -26,7 +27,7 @@
-
+

Logs

@@ -41,9 +42,7 @@
- {% block scripts %} - {{ bootstrap.load_js() }} - - - {% endblock %} - {% include "footer.html" %} \ No newline at end of file + {% block scripts %} + + {% endblock %} +{% endblock content %}