Lagt til søkeside. Mye flikking på url-configen.

This commit is contained in:
2011-03-06 16:57:12 +00:00
parent e185f784c6
commit 56dd7b67c8
7 changed files with 69 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
{% extends "base/main.html" %}
{% block title %}
Worblehat 0.1: Søk!
{% endblock %}
{% block content %}
Du søkte på {{ search_string }}.<br>
{% if people %}
Personer:<br>
{% for person in people %}
<a href="/person/{{ person.id }}/">{{ person.first_name }} {{ person.last_name }}</a><br>
{% endfor %}
{% endif %}
{% if books %}
Bøker:<br>
{% for book in books %}
<a href="/bok/{{ book.isbn }}/">{{ book.title }}</a><br>
{% endfor %}
{% endif %}
{% endblock %}