Permalink
Browse files

prevent placeholder showing on event page

  • Loading branch information...
1 parent c42b2eb commit 0777f2480990e958fe9b82f9c4c663ce08b6b81d James Cleveland committed Aug 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 suave_calendar/templates/suave_calendar/event.html
@@ -20,7 +20,7 @@
{% endblock %}
{% block body %}
<div class="twelve columns alpha omega event">
- {% if event.image and not event.header_image %}
+ {% if event.images.all.count > 0 and not event.header_image %}
{% thumbnail event.image.image '250' crop='center' as im %}
<a href={{ event.image.image.url }}><img src={{ im.url }} /></a>
{% endthumbnail %}

0 comments on commit 0777f24

Please sign in to comment.