--- a/src/spel/templates/partial/spel_annotations.html Wed Mar 19 15:55:34 2014 +0100
+++ b/src/spel/templates/partial/spel_annotations.html Fri Mar 21 11:22:42 2014 +0100
@@ -1,15 +1,22 @@
{% load static %}
{% load front_tags %}
{% load spel_tags %}
-<ul class="list-inline annot-tag-list">
- {% if q != "" %}<li class="small searched-tag"><span class="glyphicon glyphicon-search small"></span> : {{ q }} <span class="glyphicon glyphicon-remove small"></span></li>{% endif %}
- {% for t in searched_tags %}{% if t != "" %}<li class="small searched-tag">{{ t }} <span class="glyphicon glyphicon-remove small"></span></li>{% endif %}{% endfor %}
-</ul>
-<p><span class="nb-annotations-found">{{ nb_annotations }}</span> annotation(s) trouvée(s) sur {{ nb_contents }} vidéo(s)</p>
+<div class="row">
+ <div class="col-md-8">
+ <ul class="list-inline annot-tag-list">
+ {% if q != "" %}<li class="small searched-tag"><span class="glyphicon glyphicon-search small"></span> : {{ q }} <span class="glyphicon glyphicon-remove small"></span></li>{% endif %}
+ {% for t in searched_tags %}{% if t != "" %}<li class="small searched-tag">{{ t }} <span class="glyphicon glyphicon-remove small"></span></li>{% endif %}{% endfor %}
+ </ul>
+ <p><span class="nb-annotations-found">{{ nb_annotations }}</span> annotation(s) trouvée(s) sur {{ nb_contents }} vidéo(s)</p>
+ </div>
+ <div class="col-md-4">
+ <button class="annot-to-chapter btn btn-primary multiline btn-sm">Chapitres correspondant aux annotations</button>
+ </div>
+</div>
{% for res in results %}
{% for s in res.list %}
{% with s.tags|get_tags:"type_inter" as tag_list %}
-<div class="searched-annot" data-type-inter="{{ tag_list|join:', ' }}">
+<div class="searched-annot" data-type-inter="{{ tag_list|join:', ' }}" data-start="{{ s.start_ts }}" data-content="{{ s.iri_id }}">
<p>{{ res.content.title }} / {{ s.start_ts|str_duration }} - {{ s.start_ts|add:s.duration|str_duration }} / {{ s.cutting_id }}</p>
<p class="small">{{ s.tags|get_tags:"modscen_and_perso"|join:', ' }}</p>
<hr/>