]> git.parisson.com Git - teleforma.git/commitdiff
fix hosts
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 22 Jul 2013 19:42:49 +0000 (21:42 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 22 Jul 2013 19:42:49 +0000 (21:42 +0200)
teleforma/templates/teleforma/course_conference_audio.html
teleforma/templates/teleforma/course_media.html
teleforma/templates/teleforma/inc/media_list.html

index aac3e12b31deb79b90e6d1af1ee8bf1b2106802b..c23ec325d302c05dfd6121774104c2b0f33569b0 100644 (file)
@@ -51,7 +51,7 @@
 <div class="audio" style="margin-top:1em;">
 <audio controls autoplay preload="auto">
 <!-- Hello Chrome and Firefox (and Opera?) -->
-<source src="{{ livestream.url|set_host:HOST }}" type="audio/mpeg" />
+<source src="{{ livestream.url|set_host:host }}" type="audio/mpeg" />
 </audio>
 </div>
 {% endif %}
index 845a5fd33a539393e73db39dbd3ee4a6cc7e00cd..c817acd4a98437c143e7491bb13cdcea2a9a8fe8 100644 (file)
@@ -98,7 +98,7 @@ $(document).ready(function(){
 <div class="video">
 <video id="my_video_1" class="video-js vjs-default-skin" width="640" height="360" controls preload="auto" data-setup='{}' {% if media.item.related.all %}{% for related in media.item.related.all %}{% if related.title == "preview" %}{% thumbnail related.file "640" as im %}poster="{{ im.url }}"{% endthumbnail %}{% endif %}{% endfor %}{% endif %}>
 <!-- Hello Chrome and Firefox (and Opera?) -->
-<source src="{{ MEDIA_URL|set_host:HOST }}{{ media.item.file }}" type="{{ media.mime_type }}" />
+<source src="{{ MEDIA_URL|set_host:host }}{{ media.item.file }}" type="{{ media.mime_type }}" />
 </video>
 </div>
 
@@ -109,7 +109,7 @@ $(document).ready(function(){
  {% for related in media.item.related.all %}
   {% if related.title == "preview" %}
    {% thumbnail related.file "300" as im %}
-    <img src="{{ im.url|set_host:HOST }}" width="300px" alt="preview" />
+    <img src="{{ im.url|set_host:host }}" width="300px" alt="preview" />
    {% endthumbnail %}
   {% endif %}
  {% endfor %}
@@ -119,7 +119,7 @@ $(document).ready(function(){
 </div>
 <div class="audio">
 <audio controls preload="auto">
-<source src="{{ MEDIA_URL|set_host:HOST }}{{ media.item.file }}" type="{{ media.mime_type }}" />
+<source src="{{ MEDIA_URL|set_host:host }}{{ media.item.file }}" type="{{ media.mime_type }}" />
 </audio>
 </div>
 {% endif %}
index ce5ca7278e41d7c981575029dbdb0577e8206ed5..0fe58642d71791da92abc4b4049987b6da6806b1 100644 (file)
@@ -19,7 +19,7 @@
              {% for related in media.item.related.all %}
               {% if related.title == "preview" %}
                {% thumbnail related.file "168x96" as im %}
-                <div style="background: no-repeat url('{{ im.url|set_host:HOST }}') 0 1px; background-size: 100%; background-color: #dfdfdf;">
+                <div style="background: no-repeat url('{{ im.url|set_host:host }}') 0 1px; background-size: 100%; background-color: #dfdfdf;">
                  <img src="{{ STATIC_URL }}teleforma/images/play_168.png" width="100%" alt="{% trans 'Click here' %}" />
                 </div>
                {% endthumbnail %}
@@ -52,7 +52,7 @@
              <img src="{{ STATIC_URL }}telemeta/images/delete.png" style="vertical-align:middle" alt="" title="{% trans ' rejected' %}" />
             {% endif %}
             {% if media.item.file %}
-             <a href="{{ MEDIA_URL|set_host:HOST }}{{ media.item.file }}">
+             <a href="{{ MEDIA_URL|set_host:host }}{{ media.item.file }}">
               <img src="{{ STATIC_URL }}teleforma/images/download_media.png" style="vertical-align:middle" alt="" title="{% trans "Download" %}" />
              </a>
             {% endif %}