From ef48ba039c617cf833b81b04bb279e10e758ba8a Mon Sep 17 00:00:00 2001 From: almelid Date: Sat, 5 Mar 2011 21:06:42 +0000 Subject: [PATCH] lagt inn litt grunnleggende css i base/main.html --- python/web/templates/base/main.html | 10 +++++++++- python/web/templates/book/view.html | 8 ++++++++ python/web/templates/person/view.html | 11 +++++++---- 3 files changed, 24 insertions(+), 5 deletions(-) diff --git a/python/web/templates/base/main.html b/python/web/templates/base/main.html index 47ad4e4..072ec55 100644 --- a/python/web/templates/base/main.html +++ b/python/web/templates/base/main.html @@ -2,4 +2,12 @@ {% block title %}{% endblock %} - + +{% block meta %} +{% endblock %} + + +{% block content %} +{% endblock %} + diff --git a/python/web/templates/book/view.html b/python/web/templates/book/view.html index 614c191..341f1c9 100644 --- a/python/web/templates/book/view.html +++ b/python/web/templates/book/view.html @@ -1,3 +1,10 @@ +{% extends "base/main.html" %} + +{%block title%} +Worblehat 0.1: {{ book.title }} +{% endblock %} + +{% block content %} Title: {{ book.title }}
{% if book.subtitle %} Subtitle: {{ book.subtitle }}
@@ -6,3 +13,4 @@ ISBN: {{ book.isbn }}
{% for person in people %} {{ person.relation }} : {{ person.person.first_name }} {{ person.person.last_name }}
{% endfor %} +{% endblock %} diff --git a/python/web/templates/person/view.html b/python/web/templates/person/view.html index 2095d70..a3a4874 100644 --- a/python/web/templates/person/view.html +++ b/python/web/templates/person/view.html @@ -1,9 +1,12 @@ - - {{ title }} - +{% extends "base/main.html" %} - +{% block title%} +Worblehat 0.1: {{ person.first_name }} {{ person.last_name }} +{% endblock %} + +{% block content %} Name: {{person.first_name}} {{person.last_name}}
{% for book in books %} {{ book.relation.name }} of: {{ book.book.title }}
{% endfor %} +{% endblock %}