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

index da9ad5a9fdbc0058ee5fa7ff0646373820600768..1c43585798a3465f188988bdc983c17bb51847f9 100644 (file)
         {% for media in course.media.all|from_course_type:type %}
          {% if media.published or user.is_staff %}
             <tr>
-            <td {% if forloop.first %}class="border-top"{% endif %} width="230px">
+            <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.all %}
                  {% for related in media.item.related.all %}
                   {% if related.title == "preview" %}
-                  <img src="{% url telemeta-item-related media.item.code related.id %}" style="max-width: 230px; max-height: 200px;" alt="snapshot" />
+                  <img src="{% url telemeta-item-related media.item.code related.id %}" width="100%" alt="snapshot" />
                   {% endif %}
                  {% endfor %}
+                 {% elif %}
+                  snapshot
                  {% endif %}
                 </a>
             </td>