From d66c0d42b678408921f5c3cb43c18df5b1f87338 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 20 Nov 2010 12:04:39 +0100 Subject: web interface --- templates/_base.html | 35 +++++++++++++++++++++++++++++++++++ templates/search.html | 44 ++++++++++++++++++++------------------------ 2 files changed, 55 insertions(+), 24 deletions(-) create mode 100644 templates/_base.html (limited to 'templates') diff --git a/templates/_base.html b/templates/_base.html new file mode 100644 index 0000000..b5826b2 --- /dev/null +++ b/templates/_base.html @@ -0,0 +1,35 @@ + + + + + {% block head %} + + {% block title %}{% endblock %} - booksearch + + {% endblock %} + + + + +
+
+ {% block content %}{% endblock %} +
+ + diff --git a/templates/search.html b/templates/search.html index 0c5f3d6..5f68355 100644 --- a/templates/search.html +++ b/templates/search.html @@ -1,18 +1,13 @@ - - - {{ objects.__len__() + skip}} matches - - - -
- - -
+{% extends "_base.html" %} +{% block title %} + {% if term != "" %} + {{ term }} + {% else %} + Start a new Search + {% endif %} +{% endblock %} +{% block searchValue %}{{ term }}{% endblock %} +{% block content %} {% if objects.__len__() == 0 %} No Matches {% else %} @@ -36,14 +31,15 @@ window.location = "/search/" + inputField.value; {% endfor %} {% endif %} -
- {% if skip > 0 %} - Previous 5 - {% else %} - Previous 5 + - - +{% endblock %} -- cgit v1.2.1