#12 påbegynt. Har nå blått utseende på ting.
This commit is contained in:
parent
ca1f1cfbcb
commit
1d329b7268
|
@ -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 {
|
body, p, ol, ul, td {
|
||||||
font-family: verdana, arial, helvetica, sans-serif;
|
font-family: verdana, arial, helvetica, sans-serif;
|
||||||
|
@ -12,9 +16,64 @@ pre {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a { color: #000; }
|
a {
|
||||||
a:visited { color: #666; }
|
color: #000;
|
||||||
a:hover { color: #fff; background-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 {
|
.fieldWithErrors {
|
||||||
padding: 2px;
|
padding: 2px;
|
||||||
|
|
|
@ -69,7 +69,7 @@ TEMPLATE_DIRS = (
|
||||||
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
||||||
# Always use forward slashes, even on Windows.
|
# Always use forward slashes, even on Windows.
|
||||||
# Don't forget to use absolute paths, not relative paths.
|
# Don't forget to use absolute paths, not relative paths.
|
||||||
'web/templates/'
|
'/home/tirilane/src/pvv/worblehat/trunk/python/web/templates/'
|
||||||
)
|
)
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>{% block title %}{% endblock %}</title>
|
<title>{% block title %}{% endblock %}</title>
|
||||||
|
<meta charset="utf-8">
|
||||||
<link type="text/css" rel="stylesheet" href="/media/styles/bilbo_green.css">
|
<link type="text/css" rel="stylesheet" href="/media/styles/scaffold.css">
|
||||||
|
|
||||||
{% block meta %}
|
{% block meta %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<h1>Worblehat</h1>
|
||||||
|
<hr>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -3,14 +3,13 @@
|
||||||
{%block title%}
|
{%block title%}
|
||||||
Worblehat 0.1: {{ book.title }}
|
Worblehat 0.1: {{ book.title }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
Title: {{ book.title }} <br>
|
<span class="key">Title:</span> {{ book.title }} <br>
|
||||||
{% if book.subtitle %}
|
{% if book.subtitle %}
|
||||||
Subtitle: {{ book.subtitle }} <br>
|
<span class="key">Subtitle:</span> {{ book.subtitle }} <br>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
ISBN: {{ book.isbn }} <br>
|
<span class="key">ISBN:</span> {{ 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>
|
<span class="key">{{ person.relation }}:</span> <a href=/person/{{person.person.id}}>{{ person.person.first_name }} {{ person.person.last_name }}</a> <br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -5,8 +5,8 @@ Worblehat 0.1: {{ person.first_name }} {{ person.last_name }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% 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 %}
|
{% 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 %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Reference in New Issue