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

Side by Side Diff: app/views/account/_user_news_links.rhtml

Issue 2323: Upgrade to Rails 2 SVN Base: http://familyconnect.rubyforge.org/svn/trunk/
Patch Set: Created 1 year, 4 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 unified diff | Download patch
OLDNEW
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 -%>
OLDNEW

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