# HG changeset patch # User cavaliet # Date 1394560764 -3600 # Node ID a41d76310c7d29fe597389e89f26eb23baf6c3c2 # Parent acf4460a8074e2ae3565d0f7b3661cd2199918be Little chapter table modif diff -r acf4460a8074 -r a41d76310c7d src/spel/templates/partial/spel_chapters.html --- a/src/spel/templates/partial/spel_chapters.html Tue Mar 11 17:43:28 2014 +0100 +++ b/src/spel/templates/partial/spel_chapters.html Tue Mar 11 18:59:24 2014 +0100 @@ -4,14 +4,14 @@

{{ segments|length }} segment(s) trouvé(s)

- + {% for s in segments %} - + {% endfor %} diff -r acf4460a8074 -r a41d76310c7d src/spel/templatetags/spel_tags.py --- a/src/spel/templatetags/spel_tags.py Tue Mar 11 17:43:28 2014 +0100 +++ b/src/spel/templatetags/spel_tags.py Tue Mar 11 18:59:24 2014 +0100 @@ -23,18 +23,6 @@ except: continue val.append(t[t.index(":")+2:]) - elif arg=="ref_text_2": - for t in a: - try: - t.index(":") - except: - continue - if t[:t.index(":")]=="ref_text": - tag_split = t.split(":") - if len(tag_split)>2: - val.append( ":".join(tag_split[2:]) ) - else: - val.append(t[t.index(":")+2:]) elif arg=="modscen_and_perso": for t in a: try: diff -r acf4460a8074 -r a41d76310c7d src/spel/views.py --- a/src/spel/views.py Tue Mar 11 17:43:28 2014 +0100 +++ b/src/spel/views.py Tue Mar 11 18:59:24 2014 +0100 @@ -55,7 +55,7 @@ #logger.debug(iri_ids) # Filter segment if necessary annot_types_param = request.GET.get("annotation_types", "") - seg_queryset = Segment.objects.filter(iri_id__in=iri_ids) + seg_queryset = Segment.objects.filter(iri_id__in=iri_ids).select_related('content__title') if annot_types_param!="": annot_types = annot_types_param.split(",") seg_queryset = seg_queryset.filter(cutting_id__in=annot_types)
TypeRef textedébut - fin 
TypeRef texteTitre de la vidéo 
{{ s.cutting_id }}{{ s.tags|get_tags:"ref_text_2"|join:', ' }}{{ s.start_ts|str_duration }} - {{ s.start_ts|add:s.duration|str_duration }}
{{ s.cutting_id }}{{ s.tags|get_tags:"ref_text"|join:', ' }}{{ s.content.title }} + data-content="Timecodes: {{ s.start_ts|str_duration }} - {{ s.start_ts|add:s.duration|str_duration }}
{{ s.tags|get_tags:'group'|safe }}">