From 7d690e145d5f55aa8c48b25e8040c21cf69b5a8c Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 5 Oct 2011 20:01:43 +0530 Subject: [PATCH] ups --- .../modules/bestpractices/bestpractice.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/itf/templates/modules/bestpractices/bestpractice.html b/itf/templates/modules/bestpractices/bestpractice.html index ed04fad..cdd6f23 100644 --- a/itf/templates/modules/bestpractices/bestpractice.html +++ b/itf/templates/modules/bestpractices/bestpractice.html @@ -2,11 +2,11 @@
{% for s in stories %} Story: {{ s.text }} - {% for img in images %} - {% thumbnail img "100x100" crop="center" as im %} + {% if s.image %} + {% thumbnail s.image "100x100" crop="center" as im %} {% endthumbnail %} - {% endfor %} + {% endif %}

{% endfor %} Law: {{ law }} @@ -18,6 +18,13 @@

Relevance to Theatre: {{ theatre|linebreaksbr }} Quick Howto: {{ quick_howto|linebreaksbr }}

+ + {% for img in images %} + {% thumbnail img "100x100" crop="center" as im %} + + {% endthumbnail %} + {% endfor %} +