From d66c0d42b678408921f5c3cb43c18df5b1f87338 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 20 Nov 2010 12:04:39 +0100 Subject: web interface --- templates/search.html | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) (limited to 'templates/search.html') 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