From 2126f86d4d83409311e264dbaf93facf435a505b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Zapke-Gru=CC=88ndemann?= Date: Mon, 9 Jan 2012 07:25:19 +0100 Subject: Added thumbnails for news. --- sublab_project/news/templates/news/news_list.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sublab_project/news/templates/news/news_list.html') diff --git a/sublab_project/news/templates/news/news_list.html b/sublab_project/news/templates/news/news_list.html index af66c07..fa11311 100644 --- a/sublab_project/news/templates/news/news_list.html +++ b/sublab_project/news/templates/news/news_list.html @@ -1,4 +1,5 @@ {% extends 'base.html' %} +{% load thumbnail %} {% block title %}Neues{% endblock %} @@ -10,7 +11,11 @@ {% if post.image %}
- + + {% thumbnail post.image "200" upscale=False as image %} + + {% endthumbnail %} +
{% endif %} {{ post.content_html|safe }} -- cgit v1.2.1