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

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

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

View File

@ -1,4 +1,8 @@
body { background-color: #fff; color: #333; }
body {
background-color: #CCDDFF;
color: #333;
font-family: verdana, sans-serif, arial, courier new
}
body, p, ol, ul, td {
font-family: verdana, arial, helvetica, sans-serif;
@ -12,9 +16,64 @@ pre {
font-size: 11px;
}
a { color: #000; }
a:visited { color: #666; }
a:hover { color: #fff; background-color:#000; }
a {
color: #000;
}
a:visited {
color: #666;
}
a:hover {
color: #fff;
background-color:#000;
}
h1 {
color: #44A4BD;
font-family: verdana, sans-serif, arial, courier new;
text-align: center;
text-transform: uppercase;
text-shadow: 2px 2px 2px #27606E;
}
h2 {
color: #3399CC;
font-family: verdana, sans-serif, arial, courier new;
text-align: center;
text-transform: uppercase
}
h3 {
color: #38703F;
font-family: verdana, sans-serif, arial, courier new;
text-align: left
}
h4 {
color: #3399CC;
font-family: verdana, sans-serif, arial, courier new;
text-align: center
}
h5 {
color: #44A4BD;
font-family: verdana, sans-serif, arial, courier new;
text-align: left
}
h6 {
color: #339944;
font-family: verdana, sans-serif, arial, courier new;
text-align: center
}
img.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.key {
color: #27606E;
font-family: verdana, sans-serif, arial, courier new;
text-align: left;
font-weight: bolder;
text-shadow: 1px 1px 1px #44A4BD;
}
.fieldWithErrors {
padding: 2px;

View File

@ -69,7 +69,7 @@ TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
'web/templates/'
'/home/tirilane/src/pvv/worblehat/trunk/python/web/templates/'
)
INSTALLED_APPS = (

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