# HG changeset patch # User veltr # Date 1353577948 -3600 # Node ID f39df810caabd1107d6818740efe99f735babbc1 # Parent 5a5024bc74e690b2d734e28cbf5befc42bf767b6 Segments show up in search engine diff -r 5a5024bc74e6 -r f39df810caab integration/css/common.css --- a/integration/css/common.css Fri Nov 16 19:23:20 2012 +0100 +++ b/integration/css/common.css Thu Nov 22 10:52:28 2012 +0100 @@ -432,7 +432,7 @@ display: block; position: relative; } -.item-video img{ +.item-video .thumbnail{ float: left; margin-right: 4px; max-width: 80px; diff -r 5a5024bc74e6 -r f39df810caab integration/css/edition.css --- a/integration/css/edition.css Fri Nov 16 19:23:20 2012 +0100 +++ b/integration/css/edition.css Thu Nov 22 10:52:28 2012 +0100 @@ -162,6 +162,8 @@ .add-segment { position: absolute; right: 10px; bottom: 10px; } + + .media-segments h2{ color: #30036d; font-size: 14px; @@ -169,29 +171,39 @@ margin: 10px 8px 2px; } -.media-segment { - height: 8px; - margin: 8px 6px 0; - background-color: #b6b8b8; +.media-segment-list { + margin: 8px 5px 0 6px; + padding-bottom: 1px; position: relative; } -.media-section { - position: absolute; + +.media-found-segments { + clear: both; padding-top: 5px; +} + +.media-found-segments .media-segment-list { + margin: 0; } + +.media-found-list { + padding-bottom: 1px; position: relative; +} + +.media-segment-list-inner { + position: absolute; width: 100%; height: 100%; top: 0; left: 0; background: url(../img/bg-segments.png); +} + .media-segment-section { - top: 0; height: 8px; + position: absolute; height: 8px; } .media-current-section { background: url(../img/pinstripe-purple.png); - top: -2px; height: 2px; + top: -2px; bottom: -2px; margin-left: -1px; padding: 2px 1px; + position: absolute; } -.media-current-section-inner { - background: url(../img/pinstripe-purple.png); - margin-top: 10px; height: 2px; -} -.media-segment .pointer{ +.media-segment-popin .pointer{ margin-left: 140px } .media-segment-popin { @@ -199,7 +211,7 @@ top: 2px; width: 300px; margin-left: -151px; display: none; } -.media-segment-popin h3{ +.media-segment-popin h3, .media-found-popin h3{ padding: 0; color: #de2500; margin-bottom: 4px; @@ -212,6 +224,17 @@ .media-segment-popin span{ color: #7628df; } + +.media-found-popin { + padding-top: 12px; overflow: hidden; + top: 2px; width: 170px; display: none; + margin-left: -86px; +} + +.media-found-popin .pointer { + margin-left: 75px; +} + .reprendre-segment{ float: right; display: block; diff -r 5a5024bc74e6 -r f39df810caab integration/css/hashcut.css --- a/integration/css/hashcut.css Fri Nov 16 19:23:20 2012 +0100 +++ b/integration/css/hashcut.css Thu Nov 22 10:52:28 2012 +0100 @@ -60,10 +60,6 @@ .item-video .frise{ border:none; } -.item-video a:hover img { - margin: 2px 0 0 2px; - box-shadow: -2px -2px 2px #333333; -} .bloc-video{ padding-left: 10px; } diff -r 5a5024bc74e6 -r f39df810caab integration/img/bg-segments.png Binary file integration/img/bg-segments.png has changed diff -r 5a5024bc74e6 -r f39df810caab integration/img/pinstripe-purple.png Binary file integration/img/pinstripe-purple.png has changed diff -r 5a5024bc74e6 -r f39df810caab integration/js/editor.js --- a/integration/js/editor.js Fri Nov 16 19:23:20 2012 +0100 +++ b/integration/js/editor.js Thu Nov 22 10:52:28 2012 +0100 @@ -25,25 +25,44 @@ serializer: IriSP.serializers.medialist }), mashup = new IriSP.Model.Mashup(false, project), - mediatemplate = _.template('
<%= description %>
' - + '<%= IriSP.hc_messages.Duration_ %> <%= duration.toString() %>
<%= IriSP.hc_messages.Duration_ %> <%= duration.toString() %>
'
+ ),
+ mediasegmenttemplate = _.template(
+ '
<%= IriSP.hc_messages.From_ %> <%= annotation.begin.toString() %> <%= IriSP.hc_messages.to_ %> <%= annotation.end.toString() %> (<%= IriSP.hc_messages.duration_ %> <%= annotation.getDuration().toString() %>)
' - + '
<%= media.description %>
' + 'Durée : <%= media.duration.toString() %>