From c920b277d4dd9f5d4cbe8f3ae6ef0d7f9043b80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Zapke-Gru=CC=88ndemann?= Date: Fri, 30 Dec 2011 13:43:48 +0100 Subject: Added CSS class for images. --- sublab_project/news/templates/news/news_detail.html | 6 +++++- sublab_project/news/templates/news/news_list.html | 6 +++++- 2 files changed, 10 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 27c7449..918fe60 100644 --- a/sublab_project/news/templates/news/news_detail.html +++ b/sublab_project/news/templates/news/news_detail.html @@ -5,7 +5,11 @@ {% block content %}

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

{{ object.title }}

- {% if object.image %}{% endif %} + {% 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 728e847..af66c07 100644 --- a/sublab_project/news/templates/news/news_list.html +++ b/sublab_project/news/templates/news/news_list.html @@ -8,7 +8,11 @@

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

- {% if post.image %}{% endif %} + {% if post.image %} +
+ +
+ {% endif %} {{ post.content_html|safe }} {% endfor %} {% if is_paginated %} -- cgit v1.2.1