From: olivier <> Date: Fri, 12 Dec 2008 19:43:57 +0000 (+0000) Subject: integrate timeside player X-Git-Tag: 1.1~772 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a3663461ae08895c22878e68d4353cd89cf1c822;p=telemeta.git integrate timeside player --- diff --git a/telemeta/htdocs/css/telemeta.css b/telemeta/htdocs/css/telemeta.css index da05c610..d9db30df 100644 --- a/telemeta/htdocs/css/telemeta.css +++ b/telemeta/htdocs/css/telemeta.css @@ -89,6 +89,7 @@ h3 { } #leftcol { position: relative; + z-index: -1; margin-right: 345px; min-height: 450px; min-width: 400px; @@ -97,23 +98,27 @@ h3 { clear: both; position: absolute; right: .3em; - width: 308px; - text-align: right; + width: 362px; margin-top: 10px; border: 1px dotted #999; padding: 6px; background-color: #eee; } -#rightcol div { +#rightcol .analyzer { + text-align: right; +} + +#rightcol .analyzer, #rightcol .exporter { text-align: left; position: relative; } #rightcol form { - width: 305px; + width: 360px; margin-top: 5px; background-color: #fff; border: 1px solid #adadad; } +/* #item_player_c { width: 305px; padding: 2px 0 0; @@ -122,6 +127,8 @@ h3 { } .item_visualization select { width: 240px; } .item_visualization .viewport { width: 305px; border: 1px solid #adadad; overflow: auto; margin-top: 5px; background-color: #fff;} +*/ + .exporter { background-color: #fff; @@ -139,7 +146,7 @@ h3 { background-color: #fff; color: #000; border: 1px solid #adadad; - width: 301px; + width: 356px; padding: 2px; margin: 5px 0 0; /* overflow: auto; */ @@ -613,4 +620,4 @@ table.listing tbody td a:hover, table.listing tbody th a:hover { table.listing tbody tr { border-top: 1px solid #ddd } table.listing tbody tr.even { background-color: #fcfcfc } table.listing tbody tr.odd { background-color: #f7f7f7 } -table.listing tbody tr:hover { background: #f7f8fa !important } \ No newline at end of file +table.listing tbody tr:hover { background: #f7f8fa !important } diff --git a/telemeta/htdocs/js/application.js b/telemeta/htdocs/js/application.js index 3f8bba5c..446f233b 100644 --- a/telemeta/htdocs/js/application.js +++ b/telemeta/htdocs/js/application.js @@ -1,4 +1,15 @@ function ployBlocks() { + + $('.extraInfos div.nett').css('display', 'block'); + $('.closed').css('display', 'none'); + $('.extraInfos h4').toggleClass('on').click(function() { + $(this) + .toggleClass('on') + .parent().find('div').eq(0).toggle(); + return false; + }); + + /* var extraInfos = $$('.extraInfos div'); for (i = 0; i + {% endblock %} diff --git a/telemeta/templates/mediaitem_detail.html b/telemeta/templates/mediaitem_detail.html index cffa0175..d2319f84 100644 --- a/telemeta/templates/mediaitem_detail.html +++ b/telemeta/templates/mediaitem_detail.html @@ -1,10 +1,59 @@ {% extends "base.html" %} {% load telemeta_utils %} +{% block extra_style %} + +{% endblock %} {% block extra_javascript %} - + + + + + + + + + + + {% endblock %} @@ -18,32 +67,34 @@ {% if item.file %}
+ +
+
+
+
+ +
+
+
+
+
- {% if 0 %} {# Use 1/0 for alternate player #} - - - -
- {% else %} - -

Get Flash to see this player.

- - {% endif %} -
- -
-
+ + +
@@ -196,4 +247,4 @@ {% endblock %} {% else %}

No such item

-{% endif %} \ No newline at end of file +{% endif %} diff --git a/telemeta/urls.py b/telemeta/urls.py index b3ed6ec2..e2f83104 100644 --- a/telemeta/urls.py +++ b/telemeta/urls.py @@ -132,4 +132,7 @@ urlpatterns = patterns('', url(r'^swf/(?P.*)$', 'django.views.static.serve', {'document_root': htdocs+'/swf'}, name="telemeta-swf"), + url(r'^timeside/(?P.*)$', 'django.views.static.serve', + {'document_root': htdocs+'/timeside'}, + name="telemeta-timeside"), )