]> git.parisson.com Git - teleforma.git/commitdiff
fix media list
authoryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 15:59:56 +0000 (17:59 +0200)
committeryomguy <yomguy@parisson.com>
Thu, 19 Jul 2012 15:59:56 +0000 (17:59 +0200)
teleforma/templates/teleforma/inc/media_list.html

index 9a35949a3564100aa165bcae4bffa40d2d60a28a..92ed38b33a2f09e40e2c3e359ffdb08e3349a80c 100644 (file)
@@ -11,6 +11,7 @@
     <tbody>
         {% for media in course.media.all|from_course_type:type %}
          {% if media.published or user.is_staff %}
+          {% if media.type == 'webm' %}
             <tr>
             <td {% if forloop.first %}class="border-top"{% endif %} width="230px">
                 <a href="{% url teleforma-media-detail media.id %}" title="{% trans "View" %}">
@@ -37,6 +38,7 @@
             </td>
             <td {% if forloop.first %}class="border-top"{% endif %} width="10%" align="center">{% if media.item.file %}<a href="{% url teleforma-media-download media.id %}"><img src="{{ STATIC_URL }}teleforma/images/download_media.png" style="vertical-align:middle" alt="" title="{% trans "Download" %}" /></a>{% endif %}</td>
             </tr>
+          {% endif %}
          {% endif %}
         {% endfor %}
     </tbody>