From b89ea4110d9d5bbd4cff48dfeb0e605430b5ae54 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 18 Jan 2008 18:26:19 +0000 Subject: [PATCH] Show comment counts in diary entry lists. --- app/views/diary_entry/_diary_entry.rhtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/diary_entry/_diary_entry.rhtml b/app/views/diary_entry/_diary_entry.rhtml index a4897366d..8ff7afd34 100644 --- a/app/views/diary_entry/_diary_entry.rhtml +++ b/app/views/diary_entry/_diary_entry.rhtml @@ -8,6 +8,8 @@ Posted by <%= link_to diary_entry.user.display_name, :controller => 'user', : <%= link_to 'Comment on this entry', :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id, :anchor => 'newcomment' %> | <%= link_to 'Reply to this entry', :controller => 'message', :action => 'new', :user_id => diary_entry.user.id, :title => "Re: #{diary_entry.title}" %> +| +<%= link_to pluralize(diary_entry.diary_comments.count, "comment"), :action => 'view', :display_name => diary_entry.user.display_name, :id => diary_entry.id, :anchor => 'comments' %> <% end %>

-- 2.39.5