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

index 10ad4083256c609e80116bd80e96b5bed890bfaf..beda9d32c3f98c0b94ca63fa65078433b84d9635 100644 (file)
@@ -14,7 +14,9 @@
             <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 %}
                   <img src="{% url telemeta-item-related media.item.public_id media.item.related.id %}" style="max-width: 230px; max-height: 200px;" alt="snapshot" />
+                 {% endif %}
                 </a>
             </td>
             <td {% if forloop.first %}class="border-top"{% endif %} width="60%" style="padding-left: 1em;">