]> git.parisson.com Git - telemeta.git/commitdiff
fix rightcol
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 23 Mar 2015 21:32:10 +0000 (22:32 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 23 Mar 2015 21:32:10 +0000 (22:32 +0100)
telemeta/static/telemeta/css/telemeta.css
telemeta/templates/telemeta/mediaitem_detail.html
telemeta/views/item.py

index 935c6d05cec4a2ec32f6d63b1bf40bb36f33c022..7af24b54dd958d86a45fa1ffbd5a650f66957cca 100644 (file)
@@ -209,7 +209,7 @@ svg {
     border: 1px solid #adadad;
     padding: 2px;
     height: 26px;
-    margin: 5px 0 0;
+    margin: 5px 0 5px;
     font-size: 0.9em;
     color: #000;
     font-weight: bold;
@@ -219,7 +219,7 @@ svg {
     background-color: #fff;
     color: #000;
     border: 1px solid #adadad;
-    width: 356px;
+    width: 348px;
     padding: 2px;
     /* margin: 5px 0 0; */
     font-size: 1em;
index 225db7d95f51564bf3e459ab6c76624ab6f2016a..7dab0e42dd15cccf3e1477eb8b54396f3acd1d3f 100644 (file)
 
     {% if "video" in mime_type %}
     <div>
-    <video id="my_video_1" class="video-js vjs-default-skin" width="362" height="240" controls preload="auto" data-setup="{}">
+    <video id="my_video_1" class="video-js vjs-default-skin" width="348" height="240" controls preload="auto" data-setup="{}">
         <!-- Hello Chrome and Firefox (and Opera?) -->
         <source src="{% url "telemeta-item-export" item.public_id mime_type|mime_to_ext %}" type="{{ mime_type }}" />
         </video>
index 22f62684a0caec7fdd7e1298214aad71623970db..f2196bc9adcd2c97f767cca0b0c28ab5327806dd 100644 (file)
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
+
+# Copyright (C) 2010-2015 Parisson SARL
 # Copyright (C) 2007-2010 Samalyse SARL
-# Copyright (C) 2010-2012 Parisson SARL
 
 # This software is a computer program whose purpose is to backup, analyse,
 # transcode and stream any audio content with its metadata over a web frontend.
@@ -255,6 +256,7 @@ class ItemView(ItemBaseMixin):
         #FIXME: MP4 handling in TimeSide
         if 'mp4' in extension:
             mime_type = 'video/mp4'
+            print 'ok'
             video = item.file.path
             response = StreamingHttpResponse(stream_from_file(video), mimetype = mime_type)
             response['Content-Disposition'] = 'attachment'