avoid img bug in template
authorcavaliet
Thu, 07 Jun 2012 17:19:40 +0200
changeset 25 262fcc5feb52
parent 22 b5889be773ef
child 26 67402eef14a8
avoid img bug in template
web/tralalere/templates/home.html
--- a/web/tralalere/templates/home.html	Thu Jun 07 16:51:38 2012 +0200
+++ b/web/tralalere/templates/home.html	Thu Jun 07 17:19:40 2012 +0200
@@ -7,10 +7,9 @@
             </div>
             
             {% for content in contents %}
-            {% thumbnail content.image "135x120" format="PNG" crop="center" as im %}
             <div class="home-media">
                 <a href="#">
-                    <img class="home-media-image" src="{{im.url}}" width="{{ im.width }}" height="{{ im.height }}" />
+                    {% thumbnail content.image "135x120" format="PNG" crop="center" as im %}<img class="home-media-image" src="{{im.url}}" width="{{ im.width }}" height="{{ im.height }}" />{% endthumbnail %}
                 </a>
                 <h3>
                     <a href="{% url player content.iri_id %}">{{content.title}}</a>
@@ -72,6 +71,5 @@
                     </li>
                 </ul>
             </div>
-            {% endthumbnail %}
             {% endfor %}
 {% endblock %}