people separately

This commit is contained in:
Sanj 2012-01-31 02:52:39 +05:30
parent b62164327b
commit 7ee746c508
4 changed files with 724 additions and 183 deletions

View File

@ -51,3 +51,7 @@ body {
.fileWrapper {
margin-bottom: 32px;
}
.personName {
}

View File

@ -13,7 +13,10 @@ def do():
d['bios'] = []
for p in d['people']:
if people.has_key(p):
d['bios'].append(people[p])
d['bios'].append({
'name': p,
'bio': people[p]
})
else:
print "Error: %d, %s" % (d['serial'], p,)

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,10 @@
<body>
{% for f in files %}
<div class="fileWrapper">
<h3 class="title"><span class="counter">{{ f.serial }}. </span>{{ f.title }} <span class="people">{% for person in f.bios %} {{ person }} {% endfor %}</span></h3>
<h3 class="title"><span class="counter">{{ f.serial }}. </span>{{ f.title }}</h3>
{% for person in f.bios %}
<div class="people"><span class="personName">{{ person.name }}</span>: {{ person.bio }}</div>
{% endfor %}
<div class="datetime">
<div class="date">Date: {{ f.dateStr }}</div>
<div class="time">Time: {{ f.time }}</div>