source: telemeta/templates/telemeta_default/inc/collection_list.html @ 5bf08b0

cremcrem2crem3devdev2diademsdj1.6feature/breadcrumbsfeature/ts-0.5feature/ts-0.5.4feature/writecacheformagenericinstru_searchlamlam2mapsv3mergenlivemultiproductionrelease/1.4.4sabiodsearchsecurityserversocialstoragetelecastertestvideo
Last change on this file since 5bf08b0 was 5bf08b0, checked in by olivier <>, 5 years ago

various fixes related to new models and Django compatibility

  • Property mode set to 100644
File size: 1.4 KB
Line 
1{% load telemeta_utils %}
2{% load i18n %}
3{% if collections %}
4{% if hits %}
5<p class="pagination">
6{% blocktrans %}Collections {{ first_on_page }} to {{ last_on_page }} on {{ hits }}{% endblocktrans %}
7&nbsp;&nbsp;
8{% if has_previous %} <a href="?page={{ previous }}&amp;{{criteria|build_query_string}}">&lt;&lt;</a> {% endif %}
9{% if has_next %} <a href="?page={{ next }}&amp;{{criteria|build_query_string}}">&gt;&gt;</a> {% endif %}
10</p>
11{% endif %}
12<table class="listing">
13<tr>
14    <th class="highlight">{% trans "Title" %}</th>
15    <th>{% field_label "MediaCollection" "creator" %}</th>
16    <th>{% trans "Recordist" %}</th>
17    <th>{% trans "Year of recording" %}</th>
18</tr>
19{% for collection in collections %}
20<tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
21    <td class="highlight">
22        <a href="{% url telemeta-collection-detail collection.public_id %}">{{ collection }}</a>
23    </td>
24    <td>{{ collection.creator }}</td>
25    <td>{{ collection.apparent_collector }}</td>
26    <td>
27    {% if collection.recorded_from_year %}
28        {{ collection.recorded_from_year }}
29        {% if collection.recorded_to_year and not collection.recorded_to_year|equals:collection.recorded_from_year %}
30            - {{ collection.recorded_to_year }}
31        {% endif %}
32    {% endif %}
33    </td>
34</tr>
35{% endfor %}
36</table>
37{% else %}
38    <p>{% trans "No collection" %}</p>
39{% endif %}
40
Note: See TracBrowser for help on using the repository browser.