Lagt til html-visning av kategorier og en oversikt over hyller.

This commit is contained in:
2011-03-06 18:01:15 +00:00
parent acb9bd6501
commit 79c73b2502
6 changed files with 72 additions and 6 deletions

View File

@@ -0,0 +1,23 @@
{% extends "base/main.html" %}
{%block title%}
Worblehat 0.1: Kategori: {{ category }}
{% endblock %}
{% block content %}
{{ category }}<br />
{% if not book_list %}
Det finnes ingen bøker i denne kategorien.
{% else %}
Følgende bøker finnes i denne kategorien:
<ul>
{% for book in book_list %}
<li><a href="/bok/{{ book.id }}">{{ book }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}