# HG changeset patch # User cavaliet # Date 1397816542 -7200 # Node ID ca3207a1c6e3a01bc18c96da778d304a800912f5 # Parent 4778ee1a122f9a185f1b9a9fd983eb2d9233d302 v0.5.4 add play button for each chapter and annotation diff -r 4778ee1a122f -r ca3207a1c6e3 src/spel/__init__.py --- a/src/spel/__init__.py Thu Apr 17 16:24:34 2014 +0200 +++ b/src/spel/__init__.py Fri Apr 18 12:22:22 2014 +0200 @@ -1,4 +1,4 @@ -VERSION = (0, 5, 3, "final", 0) +VERSION = (0, 5, 4, "final", 0) VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2]))) diff -r 4778ee1a122f -r ca3207a1c6e3 src/spel/static/spel/css/spel.css --- a/src/spel/static/spel/css/spel.css Thu Apr 17 16:24:34 2014 +0200 +++ b/src/spel/static/spel/css/spel.css Fri Apr 18 12:22:22 2014 +0200 @@ -84,7 +84,7 @@ white-space: normal; } th.popinfo{ - min-width: 45px; + min-width: 60px; } span.popinfo{ cursor: pointer; @@ -101,4 +101,7 @@ #AnnotationsListContainer { float: left; margin: 10px 0; +} +.play-button{ + color: #333; } \ No newline at end of file diff -r 4778ee1a122f -r ca3207a1c6e3 src/spel/static/spel/js/spectacle.js --- a/src/spel/static/spel/js/spectacle.js Thu Apr 17 16:24:34 2014 +0200 +++ b/src/spel/static/spel/js/spectacle.js Fri Apr 18 12:22:22 2014 +0200 @@ -438,11 +438,11 @@ $(".toggle-text").click(function(e){ if($(".theatre-text:visible").length==0){ $(".theatre-text").show(); - $(".toggle-text .glyphicon-play").addClass("rotate-90"); + $(".toggle-text .glyphicon-chevron-right").addClass("rotate-90"); } else{ $(".theatre-text").hide(); - $(".toggle-text .glyphicon-play").removeClass("rotate-90"); + $(".toggle-text .glyphicon-chevron-right").removeClass("rotate-90"); } }); }); diff -r 4778ee1a122f -r ca3207a1c6e3 src/spel/static/spel/metadataplayer/Polemic.js --- a/src/spel/static/spel/metadataplayer/Polemic.js Thu Apr 17 16:24:34 2014 +0200 +++ b/src/spel/static/spel/metadataplayer/Polemic.js Fri Apr 18 12:22:22 2014 +0200 @@ -107,7 +107,7 @@ this.height = (2 + _max) * this.element_height; this.$zone.css({ width: this.width + "px", - height: this.height + "px", + height: (this.height+2) + "px", position: "relative" }); @@ -232,7 +232,7 @@ this.height = (2 + this.max_elements) * this.element_height; this.$zone.css({ width: this.width + "px", - height: this.height + "px", + height: (this.height+2) + "px", position: "relative" }); diff -r 4778ee1a122f -r ca3207a1c6e3 src/spel/templates/partial/spel_annotations.html --- a/src/spel/templates/partial/spel_annotations.html Thu Apr 17 16:24:34 2014 +0200 +++ b/src/spel/templates/partial/spel_annotations.html Fri Apr 18 12:22:22 2014 +0200 @@ -22,7 +22,9 @@ {% for s in res.list %} {% with s.tags|get_tags:"type_inter" as tag_list %}
{{ res.content.title }} / {{ s.start_ts|str_duration }} - {{ s.start_ts|add:s.duration|str_duration }} / {{ s.cutting_id }}
++ {{ res.content.title }} / {{ s.start_ts|str_duration }} - {{ s.start_ts|add:s.duration|str_duration }} / {{ s.cutting_id }} +
{{ s.tags|get_tags:"modscen_and_perso"|join:', ' }}
{{ s.tags|get_tags:"ref_text"|join:', ' }}
diff -r 4778ee1a122f -r ca3207a1c6e3 src/spel/templates/partial/spel_chapters.html --- a/src/spel/templates/partial/spel_chapters.html Thu Apr 17 16:24:34 2014 +0200 +++ b/src/spel/templates/partial/spel_chapters.html Fri Apr 18 12:22:22 2014 +0200 @@ -31,10 +31,13 @@ {% for s in segments %}