]> git.parisson.com Git - teleforma.git/commitdiff
Update poster url
authorYoan Le Clanche <yoanl@pilotsystems.net>
Wed, 15 Jun 2022 13:27:15 +0000 (15:27 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Wed, 15 Jun 2022 13:27:15 +0000 (15:27 +0200)
teleforma/templates/teleforma/inc/media_list.html
teleforma/templates/teleforma/inc/media_package_list.html

index 2dc07b6ea1efe66903f91fc2aceceeb52a1e961f..51fdd6d2ff0df6a2d1236ce55f3331b17f021228 100644 (file)
@@ -16,7 +16,7 @@
             <td {% if forloop.first %}class="border-top"{% endif %} width="230px" style="vertical-align:middle">
             <a href="{% url 'teleforma-media-detail' media.id %}" title="{% trans "Play" %}">
             {% if media.poster_file %}
-               {% thumbnail related.file "168x96" as im %}
+               {% thumbnail media.poster_file "168x96" as im %}
                 <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>
index 6ecd4eb5ba08ff6beb3a645a260a84947dcaacb2..781bc9ab29ba30a9b03caf261f8032d23d7acf62 100644 (file)
@@ -11,7 +11,7 @@
             <a href="{% url 'teleforma-media-video' seminar.id media.id %}" title="{% trans "Play" %}">
              {% if media.poster_file %}
                {% thumbnail media.poster_file "168x98" as im %}
-                <div style="background: no-repeat url('{{ media.poster_file }}') 0 1px; background-size: 100%; background-color: #dfdfdf;">
+                <div style="background: no-repeat url('{{ im.url }}') 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 %}