Projects/worblehat-old
Projects
/
worblehat-old
Archived
12
0
Fork 0

lagt til litt templates

This commit is contained in:
Øyvind Almelid 2011-03-05 20:30:03 +00:00
parent fdb67788c6
commit d79e5299af
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<html>
<head>
<title>{% block title %}{% endblock %}</title>
<link type="text/css" rel="stylesheet" href="{{ MEDIA_URL }}styles/bilbo_green.css"

View File

@ -0,0 +1,8 @@
Title: {{ book.title }} <br>
{% if book.subtitle %}
Subtitle: {{ book.subtitle }} <br>
{% endif %}
ISBN: {{ book.isbn }} <br>
{% for person in people %}
{{ person.relation }} : <a href=/person/{{person.person.id}}>{{ person.person.first_name }} {{ person.person.last_name }}</a> <br>
{% endfor %}

View File

@ -0,0 +1,9 @@
<head>
<title> {{ title }} </title>
</head>
<body>
Name: {{person.first_name}} {{person.last_name}}<br>
{% for book in books %}
{{ book.relation.name }} of: <a href=/book/{{ book.book.isbn }}>{{ book.book.title }}</a> <br>
{% endfor %}