lagt inn litt grunnleggende css i base/main.html
This commit is contained in:
parent
2420bb2ec1
commit
ef48ba039c
|
@ -2,4 +2,12 @@
|
||||||
<head>
|
<head>
|
||||||
<title>{% block title %}{% endblock %}</title>
|
<title>{% block title %}{% endblock %}</title>
|
||||||
|
|
||||||
<link type="text/css" rel="stylesheet" href="{{ MEDIA_URL }}styles/bilbo_green.css"
|
<link type="text/css" rel="stylesheet" href="/media/styles/bilbo_green.css">
|
||||||
|
|
||||||
|
{% block meta %}
|
||||||
|
{% endblock %}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{% block content %}
|
||||||
|
{% endblock %}
|
||||||
|
</body>
|
||||||
|
|
|
@ -1,3 +1,10 @@
|
||||||
|
{% extends "base/main.html" %}
|
||||||
|
|
||||||
|
{%block title%}
|
||||||
|
Worblehat 0.1: {{ book.title }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
Title: {{ book.title }} <br>
|
Title: {{ book.title }} <br>
|
||||||
{% if book.subtitle %}
|
{% if book.subtitle %}
|
||||||
Subtitle: {{ book.subtitle }} <br>
|
Subtitle: {{ book.subtitle }} <br>
|
||||||
|
@ -6,3 +13,4 @@ ISBN: {{ book.isbn }} <br>
|
||||||
{% for person in people %}
|
{% for person in people %}
|
||||||
{{ person.relation }} : <a href=/person/{{person.person.id}}>{{ person.person.first_name }} {{ person.person.last_name }}</a> <br>
|
{{ person.relation }} : <a href=/person/{{person.person.id}}>{{ person.person.first_name }} {{ person.person.last_name }}</a> <br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endblock %}
|
||||||
|
|
|
@ -1,9 +1,12 @@
|
||||||
<head>
|
{% extends "base/main.html" %}
|
||||||
<title> {{ title }} </title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
{% block title%}
|
||||||
|
Worblehat 0.1: {{ person.first_name }} {{ person.last_name }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
Name: {{person.first_name}} {{person.last_name}}<br>
|
Name: {{person.first_name}} {{person.last_name}}<br>
|
||||||
{% for book in books %}
|
{% for book in books %}
|
||||||
{{ book.relation.name }} of: <a href=/book/{{ book.book.isbn }}>{{ book.book.title }}</a> <br>
|
{{ book.relation.name }} of: <a href=/book/{{ book.book.isbn }}>{{ book.book.title }}</a> <br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endblock %}
|
||||||
|
|
Reference in New Issue