Added fields to Person to reduce queries; should be able to add/edit people and names tomorrow
svn: r13934
This commit is contained in:
@@ -11,25 +11,21 @@
|
||||
<th>ID</th>
|
||||
<th>Gender</th>
|
||||
<th>Birth Date</th>
|
||||
<!-- <td>Birth Place</td> -->
|
||||
<!-- <td>Death Place</td> -->
|
||||
<th>Death Date</th>
|
||||
<!-- <td>Spouse</td> -->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for name in page.object_list %}
|
||||
<tr class="{% cycle odd,even %}">
|
||||
{% get_person_from_handle db name.person.handle as person %}
|
||||
{% if person %}
|
||||
<td><a href="{{person.handle}}/" class="noThumb">{{ forloop.counter|row_count:page }}</a>
|
||||
{% if name.person %}
|
||||
<td><a href="{{name.person.handle}}/" class="noThumb">{{ forloop.counter|row_count:page }}</a>
|
||||
</td>
|
||||
<td><a href="{{person.handle}}/" class="noThumb">{{person|make_name:user}}</a>
|
||||
<td><a href="{{name.person.handle}}/" class="noThumb">{{name|make_name:user}}</a>
|
||||
</td>
|
||||
<td><a href="{{person.handle}}/" class="grampsid">[{{person.gramps_id}}]</a></td>
|
||||
<td><a href="{{person.handle}}/" class="noThumb">{{person.gender_type}}</a></td>
|
||||
<td><a href="{{person.handle}}/" class="noThumb">{{person|person_get_birth_date|nbsp}}</a></td>
|
||||
<td><a href="{{person.handle}}/" class="noThumb">{{person|person_get_death_date|nbsp}}</a></td>
|
||||
<td><a href="{{name.person.handle}}/" class="grampsid">[{{name.person.gramps_id}}]</a></td>
|
||||
<td><a href="{{name.person.handle}}/" class="noThumb">{{name.person.gender_type}}</a></td>
|
||||
<td><a href="{{name.person.handle}}/" class="noThumb">{{name.person.birth}}</a></td>
|
||||
<td><a href="{{name.person.handle}}/" class="noThumb">{{name.person.death}}</a></td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user