Lagt til søkeside. Mye flikking på url-configen.
This commit is contained in:
21
python/web/templates/search/search.html
Normal file
21
python/web/templates/search/search.html
Normal 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 %}
|
Reference in New Issue
Block a user