Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(26)

Unified Diff: app/views/news/_news_item.rhtml

Issue 2323: Upgrade to Rails 2 SVN Base: http://familyconnect.rubyforge.org/svn/trunk/
Patch Set: Created 1 year, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
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>

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497