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

Diverse fiksing på utseendet på filer (#12). Og vær så snill: ikke sett 'Worblehat 0.1:' i title-blokka i html-filene, det skal i main. Hvis ikke blir det et lite helvete når vi rykker opp til 0.2.

This commit is contained in:
Tiril Anette Langfeldt Rødland 2011-03-06 19:42:07 +00:00
parent 3d16a43961
commit 1e9585c23c
6 changed files with 48 additions and 31 deletions

View File

@ -38,11 +38,13 @@ h2 {
color: #3399CC; color: #3399CC;
font-family: verdana, sans-serif, arial, courier new; font-family: verdana, sans-serif, arial, courier new;
text-align: left; text-align: left;
text-shadow: 1px 1px 1px #44A4BD;
} }
h3 { h3 {
color: #44A4BD; color: #44A4BD;
font-family: verdana, sans-serif, arial, courier new; font-family: verdana, sans-serif, arial, courier new;
text-align: left text-align: left;
text-shadow: 1px 1px 1px #3399CC;
} }
h4 { h4 {
color: #3399CC; color: #3399CC;
@ -79,6 +81,10 @@ img.aligncenter {
text-align: center; text-align: center;
} }
.input {
width: 320px;
}
.img { .img {
float: left; float: left;
display: inline; display: inline;

View File

@ -1,24 +1,25 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Worblehat 0.1: {% block title %}{% endblock %}</title> <title>Worblehat 0.1: {% block title %}{% endblock %}</title>
<meta charset="utf-8"> <meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="/media/styles/scaffold.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> <h1>Worblehat</h1>
<hr/> <hr/>
{% block content %} {% block content %}
{% endblock %} {% endblock %}
<br/><br/> <br/><br/>
<hr/> <hr/>
<div class="field"> <div class="field">
<form action="/let/" method="get"> <form action="/let/" method="get">
<input type="search" name="searchterm" placeholder="Søk etter bøker eller forfattere" autofocus> <input type="search" name="searchterm" class="input" placeholder="Søk etter bøker, forfattere eller kategorier" autofocus>
<input type="submit" value="Søk!"> <input type="submit" value="Søk!">
</form> </form>
</div> </div>
</body> </body>
</html>

View File

@ -1,20 +1,21 @@
{% extends "base/main.html" %} {% extends "base/main.html" %}
{%block title%} {%block title%}
Worblehat 0.1: Kategori: {{ category }} {{ category }}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
{{ category }}<br /> <h2>{{ category }}</h2>
{% if not book_list %} {% if not book_list %}
Det finnes ingen bøker i denne kategorien. Det finnes ingen bøker i denne kategorien.
{% else %} {% else %}
Følgende bøker finnes i denne kategorien: <!---Følgende bøker finnes i denne kategorien:---!>
<div class="key">Bøker:</div>
<ul> <ul>
{% for book in book_list %} {% for book in book_list %}
<li><a href="/bok/{{ book.id }}">{{ book }}</a></li> <li><a href="/bok/{{ book.isbn }}">{{ book }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}

View File

@ -1,11 +1,11 @@
{% extends "base/main.html" %} {% extends "base/main.html" %}
{%block title%} {%block title%}
Worblehat 0.1: Fresh, detailed, life-saving maps! Ferske, detaljerte og livsreddende kart!<!---Fresh, detailed, life-saving maps!---!>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
Hyller: <h2>Hyller</h2>
<ul> <ul>
{% for shelf_name in shelves %} {% for shelf_name in shelves %}
<li><a href="/kart/{{ shelf_name }}">{{ shelf_name }}</a></li> <li><a href="/kart/{{ shelf_name }}">{{ shelf_name }}</a></li>

View File

@ -1,10 +1,11 @@
{% extends "base/main.html" %} {% extends "base/main.html" %}
{%block title%} {% block title %}
Worblehat 0.1: Hylle {{ shelf_name }} Hylle {{ shelf_name }}
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<h2>Hylle {{ shelf_name }}</h2>
<table border="1"> <table border="1">
{% for row in shelf %} {% for row in shelf %}
<tr> <tr>

View File

@ -13,12 +13,20 @@ Du søkte på <b>{{ search_string }}</b>.<br/><br/>
{% for person in people %} {% for person in people %}
<a href="/person/{{ person.id }}/">{{ person.first_name }} {{ person.last_name }}</a><br> <a href="/person/{{ person.id }}/">{{ person.first_name }} {{ person.last_name }}</a><br>
{% endfor %} {% endfor %}
{% endif %}
<br/> <br/>
{% endif %}
{% if books %} {% if books %}
<span class="key">Bøker:</span><br/> <span class="key">Bøker:</span><br/>
{% for book in books %} {% for book in books %}
<a href="/bok/{{ book.isbn }}/">{{ book.title }}</a><br> <a href="/bok/{{ book.isbn }}/">{{ book.title }}</a><br>
{% endfor %} {% endfor %}
<br/>
{% endif %}
{% if categories %}
<span class="key">Kategorier:</span><br/>
{% for category in categories %}
<a href="/kategori/{{ category.id }}/">{{ category.name }}</a><br>
{% endfor %}
<br/>
{% endif %} {% endif %}
{% endblock %} {% endblock %}