gramps/src/data/templates/view_events.html

41 lines
1.1 KiB
HTML
Raw Normal View History

{% 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>Event Type</th>
<th>Description</th>
<th>Date</th>
<th>Place</th>
</tr>
</thead>
<tbody>
{% for event in page.object_list %}
<tr class="{% cycle odd,even %}">
<td>{{ forloop.counter|row_count:page }}</td>
<td><a href="/{{view}}/{{event.handle|escape}}" class="noThumb">
<span class="grampsid">[{{event.gramps_id}}]</span></a>
{% if user.is_authenticated %}
<td><a href="/{{view}}/{{event.handle|escape}}">{{event.event_type|escape}}</a>
<td><a href="/{{view}}/{{event.handle|escape}}">{{event.description|nbsp}}</a>
<td><a href="/{{view}}/{{event.handle|escape}}">{{event|display_date|nbsp}}</a>
<td><a href="/{{view}}/{{event.handle|escape}}">{{event.place.title|nbsp}}</a>
{% else %}
<td></td>
<td></td>
<td></td>
<td></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}