diff options
author | Markus Zapke-Grùˆndemann <info@keimlink.de> | 2011-12-30 13:43:48 +0100 |
---|---|---|
committer | Markus Zapke-Grùˆndemann <info@keimlink.de> | 2011-12-30 13:43:48 +0100 |
commit | c920b277d4dd9f5d4cbe8f3ae6ef0d7f9043b80f (patch) | |
tree | 1667b4752e097c42c704473761d25905d5b9e0c8 /sublab_project/news | |
parent | fb5a884ccdb84751a1cf1c53ecd11e877788dabe (diff) |
Added CSS class for images.
Diffstat (limited to 'sublab_project/news')
-rw-r--r-- | sublab_project/news/templates/news/news_detail.html | 6 | ||||
-rw-r--r-- | sublab_project/news/templates/news/news_list.html | 6 |
2 files changed, 10 insertions, 2 deletions
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 %} <p class="news_date">{{ object.date_updated|date:"DATETIME_FORMAT" }}</p> <h2 id="{{ object.slug }}">{{ object.title }}</h3> - {% if object.image %}<img src="{{ MEDIA_URL }}{{ object.image }}" width="{{ object.image_width }}" height="{{ object.image_height }}" align="right" />{% endif %} + {% if object.image %} + <div class="imagecontent"> + <img src="{{ MEDIA_URL }}{{ object.image }}" width="{{ object.image_width }}" height="{{ object.image_height }}" align="right" /> + </div> + {% endif %} {{ object.content_html|safe }} <p class="header">{{ object.author }}</p> {% 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 @@ <h3 id="{{ post.slug }}"> <a href="{{ post.get_absolute_url }}">{{ post.date_updated|date }} - {{ post.title }}</a> </h3> - {% if post.image %}<img src="{{ MEDIA_URL }}{{ post.image }}" width="{{ post.image_width }}" height="{{ post.image_height }}" align="right" />{% endif %} + {% if post.image %} + <div class="imagecontent"> + <img src="{{ MEDIA_URL }}{{ post.image }}" width="{{ post.image_width }}" height="{{ post.image_height }}" align="right" /> + </div> + {% endif %} {{ post.content_html|safe }} {% endfor %} {% if is_paginated %} |