Permalink
Browse files

If a blog post has no teaser, don't display any teaser-related markup.

  • Loading branch information...
1 parent 7958c4a commit 898874e65a131db2dc2bc6cf8b695655d837290f Dan Fairs committed Dec 28, 2009
Showing with 4 additions and 0 deletions.
  1. +2 −0 mingus/templates/blog/post_detail.html
  2. +2 −0 mingus/templates/proxy/includes/post_item.html
@@ -30,7 +30,9 @@
<div class="post clearfix">
<div class="date">{{ object.publish|date:"M d" }}</div>
<h2>{{ object.title }}</h2>
+ {% if object.tease %}
<p class="teaser">{{ object.tease|safe }}</p>
+ {% endif %}
<div class="body">
{% oembed %}
{{ object.body_markup|render_inlines|pygmentize|safe }}
@@ -3,7 +3,9 @@
<div class="post clearfix">
<div class="date">{{ object.pub_date|date:"M d" }}</div>
<h2><a href="{{ object.content_object.get_absolute_url }}">{{ object.title }}</a></h2>
+ {% if object.content_object.tease %}
<p class="teaser">{{ object.content_object.tease|safe }}</p>
+ {% endif %}
<div class="body">
{% oembed %}
{{ object.description|render_inlines|pygmentize|safe }}

0 comments on commit 898874e

Please sign in to comment.