]> git.parisson.com Git - teleforma.git/commitdiff
fix
authoryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 14:36:52 +0000 (16:36 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 14:36:52 +0000 (16:36 +0200)
teleforma/templates/teleforma/inc/media_list.html

index 5ac9c55dff8e0139607ebb914d0c588a8b43cd33..d994f1db49cb29ccc57ce0364432cb54a9782a44 100644 (file)
             <tr>
             <td {% if forloop.first %}class="border-top"{% endif %} width="35%">
                 <a href="{% url teleforma-media-detail media.id %}" title="{% trans "View" %}">
-                {% if media.item.related %}
-                {% thumbnail media.item.related.all.0.file "x230" as im %}
+
+                {% thumbnail media.item.related.file "x230" as im %}
                   <img src="{{ im.url }}" style="max-width: 420px; max-height: 200px;" alt="snapshot" />
                 {% endthumbnail %}
-                {% elif %}
-                 snapshot
-                {% endif %}
+
                 </a>
             </td>
             <td {% if forloop.first %}class="border-top"{% endif %} width="60%" style="padding-left: 1em;">