326d604365
If we want to use Gramps from the code directory, src should be called gramps to allow import svn: r20466
68 lines
2.1 KiB
HTML
68 lines
2.1 KiB
HTML
{% extends "view_page.html" %}
|
|
{% load my_tags %}
|
|
|
|
{% block table_data %}
|
|
|
|
<table cellspacing="0" class="infolist surname" width="95%">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>ID</th>
|
|
<th>Father</th>
|
|
<th>Mother</th>
|
|
<th>Relationship</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for family in page.object_list %}
|
|
<tr class="{% cycle odd,even %}">
|
|
<td><a href="/{{view}}/{{family.handle|escape}}{{args}}" class="browsecell"
|
|
{% if family.tags.all %}
|
|
style="color: {{family.tags.all.0.color|format_color}};"
|
|
{% endif %}
|
|
>{{ forloop.counter|row_count:page }}</a></td>
|
|
<td><a href="/{{view}}/{{family.handle|escape}}{{args}}" class="browsecell"
|
|
{% if family.tags.all %}
|
|
style="color: {{family.tags.all.0.color|format_color}};"
|
|
{% endif %}
|
|
><span class="grampsid">[{{family.gramps_id}}]</span></a>
|
|
<td><a href="/{{view}}/{{family.handle|escape}}{{args}}" class="browsecell"
|
|
{% if family.tags.all %}
|
|
style="color: {{family.tags.all.0.color|format_color}};"
|
|
{% endif %}
|
|
>{{family.father|make_name:user|nbsp}}</a>
|
|
<td><a href="/{{view}}/{{family.handle|escape}}{{args}}" class="browsecell"
|
|
{% if family.tags.all %}
|
|
style="color: {{family.tags.all.0.color|format_color}};"
|
|
{% endif %}
|
|
>{{family.mother|make_name:user|nbsp}}</a>
|
|
{% if user.is_authenticated or family.public %}
|
|
<td><a href="/{{view}}/{{family.handle|escape}}{{args}}" class="browsecell"
|
|
{% if family.tags.all %}
|
|
style="color: {{family.tags.all.0.color|format_color}};"
|
|
{% endif %}
|
|
>{{family.family_rel_type|escape|nbsp}}</a>
|
|
{% else %}
|
|
<td><a href="/{{view}}/{{family.handle|escape}}{{args}}" class="browsecell"
|
|
{% if family.tags.all %}
|
|
style="color: {{family.tags.all.0.color|format_color}};"
|
|
{% endif %}
|
|
>
|
|
{% if not family.public %}
|
|
[Private]
|
|
{% else %}
|
|
{{family.family_rel_type}}
|
|
{% endif %}
|
|
</a>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% if user.is_superuser %}
|
|
{% make_button "Add Family" "/family/add" args %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|