newsitem.html 253 Bytes
Newer Older
fred's avatar
fred committed
1
{% load paniktags thumbnail %}
fred's avatar
fred committed
2
{% if obj.image %}
3
{% thumbnail obj.image "320x240" crop="50% 25%" as im %}
4
<img src="{{im.url|as_absolute_url}}"/>
5
{% endthumbnail %}
fred's avatar
fred committed
6 7
{% endif %}

fred's avatar
fred committed
8
{% autoescape off %}
fred's avatar
fred committed
9
{{ obj.text|set_absolute_urls }}
fred's avatar
fred committed
10
{% endautoescape %}