| Index: app/views/news/_news_item.rhtml |
| =================================================================== |
| --- app/views/news/_news_item.rhtml (revision 36) |
| +++ app/views/news/_news_item.rhtml (working copy) |
| @@ -6,7 +6,7 @@ |
| <div id="news_item_<%= news_item.id %>" class="news_item"> |
| <h3><%= news_item.title %><% if news_item.recent? -%> <%= image_tag 'new.gif', :align => 'absmiddle', :style => 'float: none; border: 0px' %><% end -%></h3> |
| <div> |
| - <% if news_item.photos_count > 0 -%> |
| + <% if news_item.photos.count > 0 -%> |
| <% for photo in news_item.photos -%> |
| <% |
| thumb_url = url_for_image_column(photo, "image", |
| @@ -51,4 +51,4 @@ |
| </table> |
| </div> |
| -</div> |
| +</div> |