2009-11-13 11:02:33 +05:30
|
|
|
{% extends "view_page.html" %}
|
|
|
|
{% load my_tags %}
|
|
|
|
|
|
|
|
{% block table_data %}
|
|
|
|
|
2009-12-06 10:39:43 +05:30
|
|
|
<table cellspacing="0" class="infolist surname" width="90%">
|
2009-11-13 11:02:33 +05:30
|
|
|
<thead>
|
|
|
|
<tr>
|
2009-12-06 10:39:43 +05:30
|
|
|
<th>#</th>
|
2009-11-13 11:02:33 +05:30
|
|
|
<th>ID</th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Pub Info</th>
|
|
|
|
<th>Author</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for source in page.object_list %}
|
|
|
|
<tr class="{% cycle odd,even %}">
|
|
|
|
<td>{{ forloop.counter|row_count:page }}</td>
|
2012-05-30 08:22:33 +05:30
|
|
|
<td><a href="/{{view}}/{{source.handle|escape}}" class="noThumb browsecell">
|
2009-11-13 11:02:33 +05:30
|
|
|
<span class="grampsid">[{{source.gramps_id}}]</span></a>
|
|
|
|
{% if user.is_authenticated %}
|
2012-05-30 08:22:33 +05:30
|
|
|
<td><a href="/{{view}}/{{source.handle|escape}}" class="browsecell">{{source.title|escape}}</a>
|
|
|
|
<td><a href="/{{view}}/{{source.handle|escape}}" class="browsecell">{{source.pubinfo|nbsp}}</a>
|
|
|
|
<td><a href="/{{view}}/{{source.handle|escape}}" class="browsecell">{{source.author|nbsp}}</a>
|
2009-11-13 11:02:33 +05:30
|
|
|
{% else %}
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2012-05-25 02:21:46 +05:30
|
|
|
{% if user.is_superuser %}
|
|
|
|
{% make_button "Add Source" "/source/add" %}
|
|
|
|
{% endif %}
|
2009-11-13 11:02:33 +05:30
|
|
|
{% endblock %}
|
|
|
|
|