|
1 {% extends "front/front_base.html" %} |
|
2 {% load i18n %} |
|
3 {% load thumbnail %} |
|
4 |
|
5 {% block title %}Lignes de temps : {% trans 'search' %} ""{% endblock %} |
|
6 |
|
7 {% block css_import %} |
|
8 {{block.super}} |
|
9 <link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/front_search.css" type="text/css"/> |
|
10 {% endblock %} |
|
11 |
|
12 {% block body %} |
|
13 {{block.super}} |
|
14 |
|
15 {% if msg %} |
|
16 {{ msg }} |
|
17 {% else %} |
|
18 {% ifequal nb_results 0 %} |
|
19 {% blocktrans %} No results for <b>{{ search }}</b>.{% endblocktrans %} |
|
20 {% else %} |
|
21 <!-- TABLE POUR ALIGNER À LA VERTICALE --> |
|
22 <table id="tbl_rech"> |
|
23 <tr> |
|
24 <!-- LISTE DES RÉSULTATS --> |
|
25 <td> |
|
26 <ul class="floatlist" id="liste_resultats"> |
|
27 <!-- titre "Résultats de recherche" et options --> |
|
28 <li id="li_haut_resultats"> |
|
29 <ul class="floatlist" id="ul_haut_resultats"> |
|
30 <li id="title_resultats"> |
|
31 <h2>{% trans "Search results for " %} <b> {{ search }}</b></h2> |
|
32 </li> |
|
33 <li> |
|
34 <p id="p_nb_resultats">{{ nb_results }} {% trans "Result" %}{{ nb_results|pluralize }}</p> |
|
35 </li> |
|
36 <!--li id="resultats_options">options</li--> |
|
37 </ul> |
|
38 </li> |
|
39 <!-- Médias trouvés --> |
|
40 |
|
41 <!-- Média --> |
|
42 {% autoescape off %} |
|
43 {% for res in results.object_list %} |
|
44 <li class="li_result_media"> |
|
45 <div class="titre_result_media"> |
|
46 <div class="h3_result_media"> |
|
47 <h3>{{res.content_title|capfirst}}</h3> |
|
48 </div> |
|
49 <div class="duree_result_media"> |
|
50 <p>{{res.content.duration}}</p> |
|
51 </div> |
|
52 <div class="graphe_result_media"> |
|
53 <img src="img/placeholder_media_graph.png" width="340" height="25" alt="graph de volume" /> |
|
54 </div> |
|
55 </div> |
|
56 |
|
57 <!-- Segments du média --> |
|
58 <ul class="floatlist list_segments"> |
|
59 {% for segment in res.list %} |
|
60 <li class="li_segment"> |
|
61 <div class="left_segment"> |
|
62 <div class="color_zone" style="background: #f49af5;"></div> |
|
63 <a href="{% url ldt.ldt_utils.views.lignesdetemps.index_segment segment.project_id segment.iri_id segment.ensemble_id segment.decoupage_id segment.element_id %}"><img src="{{LDT_MEDIA_PREFIX}}img/annot_icon_80x45.png" width="80" height="45" /></a> |
|
64 <p class="duree_segment">{{ segment.duration }}</p> |
|
65 </div> |
|
66 <h4 class="title_segment"><a class="blue under" href="{% url ldt.ldt_utils.views.lignesdetemps.index_segment segment.project_id segment.iri_id segment.ensemble_id segment.decoupage_id segment.element_id %}"> |
|
67 {% if segment.title %}{{ segment.title }}{% else %}{% trans "No title" %}{% endif %}</a></h4> |
|
68 <p class="text_segment">{% if segment.context %}{{ segment.context }}{% endif %}</h4> |
|
69 </li> |
|
70 <!--li class="segmentinfos" ><span class="" title="{% trans 'open ldt' %}"><a class="ldt_link_open_ldt" href="{% url ldt.ldt_utils.views.lignesdetemps.index_segment segment.project_id segment.iri_id segment.ensemble_id segment.decoupage_id segment.element_id %}"--> |
|
71 </li> |
|
72 {% endfor %} |
|
73 </ul> |
|
74 </li> |
|
75 {% endfor %} |
|
76 {% endautoescape %} |
|
77 <!-- Fin des médias --> |
|
78 <!-- Pagination --> |
|
79 <li id="result_pagination"> |
|
80 <p> |
|
81 {% if results.has_previous %} |
|
82 <a class="blue under" href="{% url ldt.ldt_utils.views.front.search_listing %}?page={{ results.previous_page_number }}">{% trans "previous" %}</a> |
|
83 {% endif %} |
|
84 |
|
85 {% if results.paginator.num_pages > 1 %} |
|
86 <span class="current"> |
|
87 {% blocktrans with number=results.number num_pages=results.paginator.num_pages%}Page {{number}} of {{num_pages}}{% endblocktrans %} |
|
88 </span> |
|
89 {% endif %} |
|
90 |
|
91 {% if results.has_next %} |
|
92 <a class="blue under" href="{% url ldt.ldt_utils.views.front.search_listing %}?page={{ results.next_page_number }}">{% trans "next" %}</a> |
|
93 {% endif %} |
|
94 </p> |
|
95 </li> |
|
96 <!-- Fin Pagination --> |
|
97 </ul> |
|
98 |
|
99 |
|
100 <!-- Right column --> |
|
101 <!-- APERÇU DU RÉSULTAT --> |
|
102 <td id="result_preview"> |
|
103 <h4>ICI PREVIEW ?</h4> |
|
104 <p class="bigmargin">Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem …</p> |
|
105 </td> |
|
106 </tr> |
|
107 </table> |
|
108 |
|
109 {% endifequal %} |
|
110 {% endif %} |
|
111 |
|
112 {% endblock %} |
|
113 |