| OLD | NEW |
| 1 <% if user.news_items_count == 0 -%> | 1 <% if user.news_items.count == 0 -%> |
| 2 <%= current_user.id == user.id ? 'You have' : user.firstname + ' has' %> | 2 <%= current_user.id == user.id ? 'You have' : user.firstname + ' has' %> |
| 3 not posted any news items. | 3 not posted any news items. |
| 4 <% else -%> | 4 <% else -%> |
| 5 <%= current_user.id == user.id ? 'You have' : user.firstname + ' has' %> | 5 <%= current_user.id == user.id ? 'You have' : user.firstname + ' has' %> |
| 6 posted <%= pluralize(user.news_items_count, 'news item') %>. | 6 posted <%= pluralize(user.news_items.count, 'news item') %>. |
| 7 <%= link_to 'Click here', :controller => 'news', :action => 'from', :id => use
r %> to | 7 <%= link_to 'Click here', :controller => 'news', :action => 'from', :id => use
r %> to |
| 8 read <%= user.news_items_count == 1 ? 'it' : 'them' %>. | 8 read <%= user.news_items.count == 1 ? 'it' : 'them' %>. |
| 9 <% end -%> | 9 <% end -%> |
| OLD | NEW |