#12 påbegynt. Har nå blått utseende på ting.

This commit is contained in:
2011-03-06 12:26:35 +00:00
parent ca1f1cfbcb
commit 1d329b7268
5 changed files with 75 additions and 14 deletions

View File

@@ -1,13 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>{% block title %}{% endblock %}</title>
<link type="text/css" rel="stylesheet" href="/media/styles/bilbo_green.css">
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="/media/styles/scaffold.css">
{% block meta %}
{% endblock %}
</head>
<body>
<h1>Worblehat</h1>
<hr>
{% block content %}
{% endblock %}
</body>

View File

@@ -3,14 +3,13 @@
{%block title%}
Worblehat 0.1: {{ book.title }}
{% endblock %}
{% block content %}
Title: {{ book.title }} <br>
<span class="key">Title:</span> {{ book.title }} <br>
{% if book.subtitle %}
Subtitle: {{ book.subtitle }} <br>
<span class="key">Subtitle:</span> {{ book.subtitle }} <br>
{% endif %}
ISBN: {{ book.isbn }} <br>
<span class="key">ISBN:</span> {{ 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>
<span class="key">{{ person.relation }}:</span> <a href=/person/{{person.person.id}}>{{ person.person.first_name }} {{ person.person.last_name }}</a> <br>
{% endfor %}
{% endblock %}

View File

@@ -5,8 +5,8 @@ Worblehat 0.1: {{ person.first_name }} {{ person.last_name }}
{% endblock %}
{% block content %}
Name: {{person.first_name}} {{person.last_name}}<br>
<span class="key">Name:</span> {{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>
<span class="key">{{ book.relation.name }} of:</span> <a href=/book/{{ book.book.isbn }}>{{ book.book.title }}</a> <br>
{% endfor %}
{% endblock %}