source: telemeta/templates/telemeta_default/search_results.html @ 9d3f1f3

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

provide template inheritance wrappers, move real templates into templates/telemeta_default

  • Property mode set to 100644
File size: 1.5 KB
Line 
1{% extends "telemeta/base.html" %}
2{% load telemeta_utils %}
3
4{% block content %}
5<h3>Search results</h3>
6
7{% if criteria %}
8<ul>
9  {% if criteria.pattern %}
10    <li><b>Pattern:</b> {{criteria.pattern}}</li>
11  {% endif %}
12  {% if criteria.continent %}
13    <li><b>Continent:</b> {{criteria.continent}}</li>
14  {% endif %}
15  {% if criteria.country %}
16    <li><b>Country:</b> {{criteria.country}}</li>
17  {% endif %}
18  {% if criteria.ethnic_group %}
19    <li><b>Ethnic group:</b> {{criteria.ethnic_group}}</li>
20  {% endif %}
21  {% if criteria.creator %}
22    <li><b>Creator:</b> {{criteria.creator}}</li>
23  {% endif %}
24  {% if criteria.title %}
25    <li><b>Title:</b> {{criteria.title}}</li>
26  {% endif %}
27  {% if criteria.rec_date %}
28    <li><b>Recording date:</b> {{criteria.rec_date}}</li>
29  {% endif %}
30  {% if criteria.pub_date %}
31    <li><b>Publishing date:</b> {{criteria.pub_date}}</li>
32  {% endif %}
33</ul>
34{% endif %}
35
36{% ifequal type 'items' %}
37
38  <p><b>Items ({{items_num}})</b> |
39  <a href="{% url telemeta-search-collections %}?{{criteria|build_query_string}}">
40    Collections ({{collections_num}})</a></p>
41
42  {% with object_list as items %}
43      {% include "telemeta/inc/mediaitem_list.html" %}
44  {% endwith %}   
45
46{% else %}
47
48  <p><a href="{% url telemeta-search-items %}?{{criteria|build_query_string}}">
49    Items ({{items_num}})</a> |
50  <b>Collections ({{collections_num}})</b></p>
51
52  {% with object_list as collections %}
53      {% include "telemeta/inc/collection_list.html" %}
54  {% endwith %}
55
56{% endifequal %}
57
58{% endblock %}
Note: See TracBrowser for help on using the repository browser.