cremcrem2devdev2diademsformagenericinstru_searchlamnlivemultiproductionrelease/1.4.4securitysocialstoragetestvideo
|
Last change
on this file since 5bf08b0 was
5bf08b0,
checked in by olivier <>, 3 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 | |
|---|
| 8 | {% if has_previous %} <a href="?page={{ previous }}&{{criteria|build_query_string}}"><<</a> {% endif %} |
|---|
| 9 | {% if has_next %} <a href="?page={{ next }}&{{criteria|build_query_string}}">>></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.