From b99c0f195fa0001a0ac44e83e355e26788c17607 Mon Sep 17 00:00:00 2001 From: Adam Dodman Date: Thu, 5 Oct 2017 22:05:34 +0100 Subject: [PATCH] Move some structure to child files, allows more flexibility --- templates/add_quote.html | 2 ++ templates/index.html | 2 ++ templates/layout.html | 2 ++ templates/login.html | 2 ++ templates/passwd_reset.html | 3 +- templates/quote_view.html | 62 ++++++++++++++++++++----------------- 6 files changed, 43 insertions(+), 30 deletions(-) diff --git a/templates/add_quote.html b/templates/add_quote.html index ca74781..6eb2ce3 100644 --- a/templates/add_quote.html +++ b/templates/add_quote.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% block body %} +

Add new Quote

@@ -24,4 +25,5 @@
+
{% endblock %} diff --git a/templates/index.html b/templates/index.html index b8a0b48..456e5fa 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,8 +1,10 @@ {% extends "layout.html" %} {% block body %} +

Clockwork Quotes Database

View Quotes

Add a Quote

+
{% endblock %} diff --git a/templates/layout.html b/templates/layout.html index ea11ba9..24ef3c9 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -54,8 +54,10 @@ {% endfor %} {% endif %} {% endwith %} + {% block body %}{% endblock %} +

© Adam Dodman 2017

diff --git a/templates/login.html b/templates/login.html index b6a01f0..cd43fe0 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% block body %} +
@@ -21,6 +22,7 @@
+
{% endblock %} diff --git a/templates/passwd_reset.html b/templates/passwd_reset.html index 9ab71f2..08330a1 100644 --- a/templates/passwd_reset.html +++ b/templates/passwd_reset.html @@ -1,5 +1,6 @@ {% extends "layout.html" %} {% block body %} +

Password Reset:

@@ -29,6 +30,6 @@
- + {% endblock %} diff --git a/templates/quote_view.html b/templates/quote_view.html index 8dc0b69..ad0d16e 100644 --- a/templates/quote_view.html +++ b/templates/quote_view.html @@ -17,34 +17,38 @@ {% endblock %} {% block body %} -
- - - - - - - - {% if data[1] %} - - - {% endif %} - - - - {% for entry in data[0] %} - - - - - - {% if data[1] %} - - - {% endif %} - - {% endfor %} - -
Date AddedUserQuoteContextAdded By:
{{ entry[2] }}{{ uid_to_user(entry[3]) }}{{ entry[1] }}{{ entry[4] }}{{ uid_to_user(entry[5]) }}
+
+
+
+ + + + + + + + {% if data[1] %} + + + {% endif %} + + + + {% for entry in data[0] %} + + + + + + {% if data[1] %} + + + {% endif %} + + {% endfor %} + +
Date AddedUserQuoteContextAdded By:
{{ entry[2] }}{{ uid_to_user(entry[3]) }}{{ entry[1] }}{{ entry[4] }}{{ uid_to_user(entry[5]) }}
+
+
{% endblock %}