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 %}