]> git.0d.be Git - panikweb.git/blobdiff - panikweb_templates/templates/feed/newsitem.html
misc: run manage.py with python3
[panikweb.git] / panikweb_templates / templates / feed / newsitem.html
index 497a0edf93e7f0cc108dbda9f56fd9668a1854b7..3b969ae47d7a860076b3418ae49596ed52761978 100644 (file)
@@ -1,8 +1,10 @@
-{% load thumbnails %}
+{% load paniktags thumbnail %}
 {% if obj.image %}
-<img src="{{ obj.image|thumbnail:'320x240' }}"/>
+{% thumbnail obj.image "320x240" crop="50% 25%" as im %}
+<img src="{{im.url|as_absolute_url}}"/>
+{% endthumbnail %}
 {% endif %}
 
 {% autoescape off %}
-{{ obj.text }}
+{{ obj.text|set_absolute_urls }}
 {% endautoescape %}