bb9601a2a0
svn: r20990
54 lines
1.5 KiB
HTML
54 lines
1.5 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>Description</th>
|
|
<th>File</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for media in page.object_list %}
|
|
<tr class="{% cycle odd,even %}">
|
|
<td>{{ forloop.counter|row_count:page }}</td>
|
|
<td><a href="/{{view}}/{{media.handle|escape}}{{args}}" class="noThumb browsecell"
|
|
{% if media.tags.all %}
|
|
style="color: {{media.tags.all.0.color|format_color}};"
|
|
{% endif %}
|
|
>
|
|
<span class="grampsid">[{{media.gramps_id}}]</span></a>
|
|
{% if user.is_authenticated or media.public %}
|
|
<td><a href="/{{view}}/{{media.handle|escape}}{{args}}" class="browsecell"
|
|
{% if media.tags.all %}
|
|
style="color: {{media.tags.all.0.color|format_color}};"
|
|
{% endif %}
|
|
>{{media.desc|escape}}</a>
|
|
<td><a href="/{{view}}/{{media.handle|escape}}{{args}}" class="browsecell"
|
|
{% if media.tags.all %}
|
|
style="color: {{media.tags.all.0.color|format_color}};"
|
|
{% endif %}
|
|
>{{media.path|escape}}</a>
|
|
{% else %}
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% endblock %}
|
|
|
|
{% block admin_functions %}
|
|
{% if user.is_superuser %}
|
|
<div style="background-color: lightgray; padding: 2px 0px 0px 2px">
|
|
{% make_button "+Add Media" "/media/add" args %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|