From 1347410c5125775f8b84bff0d12086158c39bea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Zapke-Gru=CC=88ndemann?= Date: Fri, 30 Dec 2011 03:57:10 +0100 Subject: Added image for news posts. --- sublab_project/news/templates/news/news_detail.html | 5 ++++- sublab_project/news/templates/news/news_list.html | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'sublab_project/news/templates') diff --git a/sublab_project/news/templates/news/news_detail.html b/sublab_project/news/templates/news/news_detail.html index e3a0de1..49d2b7a 100644 --- a/sublab_project/news/templates/news/news_detail.html +++ b/sublab_project/news/templates/news/news_detail.html @@ -5,6 +5,9 @@ {% block content %}

{{ object.date_updated|date:"DATETIME_FORMAT" }}

{{ object.title }}

-

{{ object.content_html|safe }}

+

+ {% if object.image %}{% endif %} + {{ object.content_html|safe }} +

{{ object.author }}

{% endblock content %} diff --git a/sublab_project/news/templates/news/news_list.html b/sublab_project/news/templates/news/news_list.html index ea46320..52ded72 100644 --- a/sublab_project/news/templates/news/news_list.html +++ b/sublab_project/news/templates/news/news_list.html @@ -6,7 +6,10 @@

{{ post.date_updated|date }} - {{ post.title }}

-

{{ post.content_html|safe }}

+

+ {% if post.image %}{% endif %} + {{ post.content_html|safe }} +

{% endfor %} {% if is_paginated %}

-- cgit v1.2.1